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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
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.0040ed60
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.00416f80
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed60
push ebp
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 2
call fcn.004125d0
push ebp
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 3
call fcn.00412b80
cmp eax, ebp
je 0x4055b0
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.0040ed90
push 0x45602c
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 0x4054e6
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.004317c7
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed90
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ed90
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40552c
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.0040ebf0
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00412850
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed90
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed90
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed90
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 0x40573b
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.00412650
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
cdq
cmp edx, ecx
jg 0x40573b
jl 0x4055ff
cmp eax, esi
jae 0x40573b
push 0x4563c1
lea ecx, [esp + 0x24]
call fcn.00401f20
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 7
call fcn.00413430
cmp eax, ebp
jne 0x405652
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.0040ed90
jmp 0x4055b0
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.0040ed90
push 0x45602c
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 0x4056d5
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.004317c7
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed90
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 7
call fcn.0040ed90
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40571b
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.0040ebf0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ed90
jmp 0x405536
lea ecx, [esp + 0x80]
call fcn.00412620
lea ecx, [esp + 0xcc]
call fcn.00417c00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 0xb
call fcn.00418a60
cmp eax, ebp
je 0x405860
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.0040ed90
push 0x45602c
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 0x4057f7
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
call fcn.004317c7
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ed90
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ed90
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40583d
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.0040ebf0
add esp, 8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b00
jmp 0x405536
mov eax, dword [esp + 0xd8]
cmp eax, ebp
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x40591d
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.0040ed90
push 0x45602c
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.004317c7
mov byte [esp + 0x124], 0x10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040ed90
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ed90
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
jmp 0x40583f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.configuration
call fcn.004010e0
mov ecx, edi
call fcn.00417770
mov esi, eax
cmp esi, ebp
jne 0x4059bb
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.0040ed90
push 0x45602c
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.004317c7
mov byte [esp + 0x124], bl
jmp 0x4058ef
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.appSettings
call fcn.004010e0
mov ecx, esi
call fcn.00417770
mov esi, eax
cmp esi, ebp
jne 0x405a45
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.0040ed90
push 0x45602c
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 0x4059a2
lea edx, [esp + 0xb0]
push edx
call fcn.00406300
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 0x456e2c
call fcn.004010e0
mov ecx, esi
call fcn.00417900
cmp dword [ebx + 0x30], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x50], ebp
jle 0x405c33
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 0x405c1a
mov edi, edi
cmp ecx, ebp
jl 0x405dd7
cmp ecx, eax
jge 0x405dd7
mov edx, dword [esp + 0xbc]
mov edi, dword [edx + ecx*4]
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x78], ebp
jle 0x405c03
test ebp, ebp
jl 0x405dd7
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x3c]
jge 0x405dd7
mov esi, dword [edi + 0x38]
push 0x456e34
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.00431d66
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call fcn.0040ed90
test bl, bl
je 0x405b5b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405dd7
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405dd7
mov eax, dword [eax + 0x2c]
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.00404490
test eax, eax
je 0x405b5b
mov dword [esp + 0x74], 1
jmp 0x405b62
cmp dword [esp + 0x74], 0
je 0x405b8e
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.00431d66
add esp, 8
test eax, eax
jne 0x405b8e
mov bl, 1
jmp 0x405b90
xor bl, bl
test byte [esp + 0x48], 1
je 0x405ba5
and dword [esp + 0x48], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.0040ed90
test bl, bl
je 0x405bdf
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405dd7
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405dd7
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 0x405ad7
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 0x405ab0
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 0x405aa0
lea ecx, [esp + 0x6c]
call fcn.0040ed60
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 0x405e11
push ebp
lea ecx, [esp + 0x9c]
call fcn.004125d0
push ebp
push 2
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], 0x1a
call fcn.00412b80
cmp eax, ebp
je 0x405ddc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.00402060
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.0040ed90
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0x1b
call fcn.0040ed90
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0x1a
call fcn.0040ed90
push 0x45602c
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.004317c7
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 0x1e
call fcn.0040ed90
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1a
call fcn.0040ed90
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
call fcn.0040ebf0
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00412850
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed90
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406380
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b00
jmp 0x405536
jmp fcn.00428da0
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 0x405eb5
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00412850
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed90
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406380
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b00
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00412850
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed90
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed90
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed90
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.004132e0
mov esi, eax
cmp esi, ebp
lea ecx, [esp + 0x98]
jne 0x405e05
call fcn.00412620
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x120], bl
call fcn.00412850
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ed90
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406380
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b00
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00412850
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ed90
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ed90
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ed90
cmp esi, ebp
jne 0x405e9c
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