Function at 0x405360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449bea
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x7c], ebx
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], ebp
call fcn.0040ed50
sub esp, 8
mov dword [esp + 0x128], ebp
lea eax, [ebx + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00401050
lea ecx, [esp + 0x5c]
call fcn.00416fe0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed50
push ebp
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 2
call fcn.00412630
push ebp
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 3
call fcn.00412be0
cmp eax, ebp
je 0x405560
push str.Couldnt_open_XML_file
lea ecx, [esp + 0x2c]
call fcn.004010e0
add eax, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x124], 4
call fcn.00401b30
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 3
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x24]
call fcn.004010e0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
mov bl, 5
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], bl
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x120], 6
mov eax, dword [esi]
sub eax, 0x10
mov edi, 1
cmp dword [eax + 0xc], edi
jle 0x405496
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed80
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ed80
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4054dc
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401c20
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004128b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed80
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed80
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed80
mov eax, 0x64
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x94], ebp
je 0x4056eb
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x40]
push eax
mov eax, dword [edx + 0x9c]
lea ecx, [esp + 0x84]
call eax
lea ecx, [esp + 0x80]
call fcn.004126b0
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
cdq
cmp edx, ecx
jg 0x4056eb
jl 0x4055af
cmp eax, esi
jae 0x4056eb
push 0x456411
lea ecx, [esp + 0x24]
call fcn.00401f20
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 7
call fcn.00413490
cmp eax, ebp
jne 0x405602
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00401e50
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ed80
jmp 0x405560
push str.Couldnt_read_XML_data
lea ecx, [esp + 0x2c]
call fcn.004010e0
add eax, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x124], 8
call fcn.00401b30
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 7
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x44]
call fcn.004010e0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
mov bl, 9
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], bl
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x120], 0xa
mov eax, dword [esi]
sub eax, 0x10
mov edi, 1
cmp dword [eax + 0xc], edi
jle 0x405685
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed80
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 7
call fcn.0040ed80
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4056cb
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401c20
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ed80
jmp 0x4054e6
lea ecx, [esp + 0x80]
call fcn.00412680
lea ecx, [esp + 0xcc]
call fcn.00417ba0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 0xb
call fcn.00418b00
cmp eax, ebp
je 0x405810
push str.Couldnt_receive_XML_data_from_XML_string
lea ecx, [esp + 0x2c]
call fcn.004010e0
add eax, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x124], 0xc
call fcn.00401b30
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x24]
call fcn.004010e0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
mov bl, 0xd
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], bl
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x120], 0xe
mov eax, dword [esi]
sub eax, 0x10
mov edi, 1
cmp dword [eax + 0xc], edi
jle 0x4057a7
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed80
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4057ed
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401c20
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417aa0
jmp 0x4054e6
mov eax, dword [esp + 0xd8]
cmp eax, ebp
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x4058cd
push str.Failed_to_retrieve_XML_document_from_parser
lea ecx, [esp + 0x34]
call fcn.004010e0
add eax, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x124], 0xf
call fcn.00401b30
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x24]
call fcn.004010e0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 0x10
call fcn.004011f0
mov ecx, eax
mov byte [esp + 0x120], 0x11
call fcn.00401190
push eax
call fcn.00431914
mov byte [esp + 0x124], 0x10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040ed80
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
jmp 0x4057ef
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.configuration
call fcn.004010e0
mov ecx, edi
call fcn.00417780
mov esi, eax
cmp esi, ebp
jne 0x40596b
push str.Config_XML_document_was_missing_the_configuration_tag__cannot_continue
lea ecx, [esp + 0x34]
call fcn.004010e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 0x12
call fcn.004011b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x24]
call fcn.004010e0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
mov bl, 0x13
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], bl
call fcn.004011f0
mov byte [esp + 0x120], 0x14
mov ecx, eax
call fcn.00401190
push eax
call fcn.00431914
mov byte [esp + 0x124], bl
jmp 0x40589f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.appSettings
call fcn.004010e0
mov ecx, esi
call fcn.00417780
mov esi, eax
cmp esi, ebp
jne 0x4059f5
push str.Config_XML_document_was_missing_the_configuration_tag__cannot_continue
lea ecx, [esp + 0x34]
call fcn.004010e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 0x15
call fcn.004011b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0xb
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x24]
call fcn.004010e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
mov bl, 0x16
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], bl
call fcn.004011f0
mov byte [esp + 0x120], 0x17
jmp 0x405952
lea edx, [esp + 0xb0]
push edx
call fcn.004062b0
push 1
lea eax, [esp + 0xb4]
push eax
sub esp, 8
mov byte [esp + 0x130], 0x18
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x456e7c
call fcn.004010e0
mov ecx, esi
call fcn.00417910
cmp dword [ebx + 0x30], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x50], ebp
jle 0x405be3
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x4c], ebp
lea ebx, [ebx]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x40], ecx
jle 0x405bca
mov edi, edi
cmp ecx, ebp
jl 0x405d87
cmp ecx, eax
jge 0x405d87
mov edx, dword [esp + 0xbc]
mov edi, dword [edx + ecx*4]
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x78], ebp
jle 0x405bb3
test ebp, ebp
jl 0x405d87
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x3c]
jge 0x405d87
mov esi, dword [edi + 0x38]
push 0x456e84
lea ecx, [esp + 0x34]
add esi, ebp
call fcn.004010e0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 4]
push ecx
push eax
call fcn.00431eb3
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call fcn.0040ed80
test bl, bl
je 0x405b0b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405d87
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405d87
mov eax, dword [eax + 0x2c]
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.00404440
test eax, eax
je 0x405b0b
mov dword [esp + 0x74], 1
jmp 0x405b12
cmp dword [esp + 0x74], 0
je 0x405b3e
push str.value
lea ecx, [esp + 0x2c]
call fcn.004010e0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
or dword [esp + 0x48], 1
push ecx
push eax
call fcn.00431eb3
add esp, 8
test eax, eax
jne 0x405b3e
mov bl, 1
jmp 0x405b40
xor bl, bl
test byte [esp + 0x48], 1
je 0x405b55
and dword [esp + 0x48], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.0040ed80
test bl, bl
je 0x405b8f
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405d87
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405d87
mov eax, dword [eax + 0x2c]
add eax, ecx
add eax, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.00401b30
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x78]
add eax, 1
add ebp, 0x10
cmp eax, dword [edi + 0x3c]
mov dword [esp + 0x78], eax
jl 0x405a87
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x40]
xor ebp, ebp
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x40], ecx
jl 0x405a60
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x4c], 0x10
add ecx, 1
cmp ecx, dword [ebx + 0x30]
mov dword [esp + 0x50], ecx
jl 0x405a50
lea ecx, [esp + 0x6c]
call fcn.0040ed50
mov bl, 0x19
mov byte [esp + 0x120], bl
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ebp
lea ecx, [esp + 0x70]
push ecx
mov ecx, edi
call edx
mov esi, eax
cmp esi, ebp
jne 0x405dc1
push ebp
lea ecx, [esp + 0x9c]
call fcn.00412630
push ebp
push 2
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], 0x1a
call fcn.00412be0
cmp eax, ebp
je 0x405d8c
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.00402040
mov esi, eax
push str.Unable_to_open_file_for_writing:
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 0x1b
call fcn.004010e0
push esi
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
mov byte [esp + 0x128], 0x1c
call fcn.004011f0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 0x1d
call fcn.004011b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1c
call fcn.0040ed80
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0x1b
call fcn.0040ed80
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0x1a
call fcn.0040ed80
push 0x45607c
lea ecx, [esp + 0x2c]
call fcn.004010e0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 0x1e
call fcn.004011f0
mov ecx, eax
mov byte [esp + 0x120], 0x1f
call fcn.00401190
push eax
call fcn.00431914
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 0x1e
call fcn.0040ed80
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1a
call fcn.0040ed80
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
call fcn.0040ebe0
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.004128b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406330
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417aa0
jmp 0x4054e6
jmp fcn.00428ef0
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 0x64]
push 0xfeff
lea ecx, [esp + 0x9c]
call eax
mov esi, eax
cmp esi, ebp
je 0x405e65
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.004128b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406330
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417aa0
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004128b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed80
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed80
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed80
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
sub esp, 8
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00401050
lea ecx, [esp + 0xa4]
call fcn.00413340
mov esi, eax
cmp esi, ebp
lea ecx, [esp + 0x98]
jne 0x405db5
call fcn.00412680
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x120], bl
call fcn.004128b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406330
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417aa0
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004128b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed80
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed80
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed80
cmp esi, ebp
jne 0x405e4c
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret