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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449b8a
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.0040fd30
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.00413050
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040fd30
push ebp
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 2
call fcn.00413150
push ebp
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 3
call fcn.004137b0
cmp eax, ebp
je 0x4055f0
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.00401b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 3
call fcn.0040fd60
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 0x405526
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040fd60
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40556c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401bf0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004133d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040fd60
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040fd60
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040fd60
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 0x40577b
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.004131d0
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
cdq
cmp edx, ecx
jg 0x40577b
jl 0x40563f
cmp eax, esi
jae 0x40577b
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.00414060
cmp eax, ebp
jne 0x405692
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.0040fd60
jmp 0x4055f0
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.00401b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 7
call fcn.0040fd60
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 0x405715
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040fd60
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 7
call fcn.0040fd60
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40575b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401bf0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040fd60
jmp 0x405576
lea ecx, [esp + 0x80]
call fcn.004131a0
lea ecx, [esp + 0xcc]
call fcn.00417c50
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 0xb
call fcn.00418bb0
cmp eax, ebp
je 0x4058a0
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.00401b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0xb
call fcn.0040fd60
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 0x405837
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431abd
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040fd60
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40587d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401bf0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00410660
add esp, 8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b50
jmp 0x405576
mov eax, dword [esp + 0xd8]
cmp eax, ebp
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x40595d
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.00401b00
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0xb
call fcn.0040fd60
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.00431abd
mov byte [esp + 0x124], 0x10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040fd60
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
jmp 0x40587f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.configuration
call fcn.004010e0
mov ecx, edi
call fcn.00417830
mov esi, eax
cmp esi, ebp
jne 0x4059fb
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.0040fd60
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.00431abd
mov byte [esp + 0x124], bl
jmp 0x40592f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.appSettings
call fcn.004010e0
mov ecx, esi
call fcn.00417830
mov esi, eax
cmp esi, ebp
jne 0x405a85
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.0040fd60
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 0x4059e2
lea edx, [esp + 0xb0]
push edx
call fcn.00406330
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.004179c0
cmp dword [ebx + 0x30], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x50], ebp
jle 0x405c73
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 0x405c5a
mov edi, edi
cmp ecx, ebp
jl 0x405e17
cmp ecx, eax
jge 0x405e17
mov edx, dword [esp + 0xbc]
mov edi, dword [edx + ecx*4]
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x78], ebp
jle 0x405c43
test ebp, ebp
jl 0x405e17
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x3c]
jge 0x405e17
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.00431ea7
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call fcn.0040fd60
test bl, bl
je 0x405b9b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405e17
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405e17
mov eax, dword [eax + 0x2c]
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.004044d0
test eax, eax
je 0x405b9b
mov dword [esp + 0x74], 1
jmp 0x405ba2
cmp dword [esp + 0x74], 0
je 0x405bce
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.00431ea7
add esp, 8
test eax, eax
jne 0x405bce
mov bl, 1
jmp 0x405bd0
xor bl, bl
test byte [esp + 0x48], 1
je 0x405be5
and dword [esp + 0x48], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.0040fd60
test bl, bl
je 0x405c1f
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405e17
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405e17
mov eax, dword [eax + 0x2c]
add eax, ecx
add eax, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.00401b00
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 0x405b17
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 0x405af0
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 0x405ae0
lea ecx, [esp + 0x6c]
call fcn.0040fd30
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 0x405e51
push ebp
lea ecx, [esp + 0x9c]
call fcn.00413150
push ebp
push 2
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], 0x1a
call fcn.004137b0
cmp eax, ebp
je 0x405e1c
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.0040fd60
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0x1b
call fcn.0040fd60
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0x1a
call fcn.0040fd60
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.00431abd
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 0x1e
call fcn.0040fd60
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1a
call fcn.0040fd60
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.004133d0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040fd60
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004063b0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b50
jmp 0x405576
jmp fcn.00428ce4
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 0x405ef5
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.004133d0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040fd60
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004063b0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b50
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004133d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040fd60
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040fd60
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040fd60
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.00413f10
mov esi, eax
cmp esi, ebp
lea ecx, [esp + 0x98]
jne 0x405e45
call fcn.004131a0
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x120], bl
call fcn.004133d0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040fd60
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004063b0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417b50
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.004133d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040fd60
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040fd60
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040fd60
cmp esi, ebp
jne 0x405edc
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