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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b38a
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
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.004114f0
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.00414e80
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.004114f0
push ebp
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 2
call fcn.00416d50
push ebp
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 3
call fcn.004173b0
cmp eax, ebp
je 0x405820
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.00401d00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 3
call fcn.00411520
push 0x4581ec
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 0x405756
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.00411520
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.00411520
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40579c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401df0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00416fd0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.00411520
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.00411520
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.00411520
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 0x4059ab
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.00416dd0
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
cdq
cmp edx, ecx
jg 0x4059ab
jl 0x40586f
cmp eax, esi
jae 0x4059ab
push 0x458581
lea ecx, [esp + 0x24]
call fcn.004020f0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 7
call fcn.00417c60
cmp eax, ebp
jne 0x4058c2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00402020
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.00411520
jmp 0x405820
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.00401d00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 7
call fcn.00411520
push 0x4581ec
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 0x405945
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.00411520
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 7
call fcn.00411520
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40598b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401df0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.00411520
jmp 0x4057a6
lea ecx, [esp + 0x80]
call fcn.00416da0
lea ecx, [esp + 0xcc]
call fcn.00418de0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 0xb
call fcn.00419d40
cmp eax, ebp
je 0x405ad0
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.00401d00
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0xb
call fcn.00411520
push 0x4581ec
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 0x405a67
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.00411520
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.00411520
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x405aad
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401df0
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00411380
add esp, 8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00418ce0
jmp 0x4057a6
mov eax, dword [esp + 0xd8]
cmp eax, ebp
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x405b8d
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.00401d00
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0xb
call fcn.00411520
push 0x4581ec
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.00433271
mov byte [esp + 0x124], 0x10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00411520
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.00411520
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
jmp 0x405aaf
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.configuration
call fcn.004010e0
mov ecx, edi
call fcn.00419f70
mov esi, eax
cmp esi, ebp
jne 0x405c2b
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.00411520
push 0x4581ec
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.00433271
mov byte [esp + 0x124], bl
jmp 0x405b5f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.appSettings
call fcn.004010e0
mov ecx, esi
call fcn.00419f70
mov esi, eax
cmp esi, ebp
jne 0x405cb5
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.00411520
push 0x4581ec
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 0x405c12
lea edx, [esp + 0xb0]
push edx
call fcn.00406560
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 0x458fec
call fcn.004010e0
mov ecx, esi
call fcn.0041a100
cmp dword [ebx + 0x30], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x50], ebp
jle 0x405ea3
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 0x405e8a
mov edi, edi
cmp ecx, ebp
jl 0x406047
cmp ecx, eax
jge 0x406047
mov edx, dword [esp + 0xbc]
mov edi, dword [edx + ecx*4]
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x78], ebp
jle 0x405e73
test ebp, ebp
jl 0x406047
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x3c]
jge 0x406047
mov esi, dword [edi + 0x38]
push 0x458ff4
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.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call fcn.00411520
test bl, bl
je 0x405dcb
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x406047
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x406047
mov eax, dword [eax + 0x2c]
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.00404700
test eax, eax
je 0x405dcb
mov dword [esp + 0x74], 1
jmp 0x405dd2
cmp dword [esp + 0x74], 0
je 0x405dfe
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.00433091
add esp, 8
test eax, eax
jne 0x405dfe
mov bl, 1
jmp 0x405e00
xor bl, bl
test byte [esp + 0x48], 1
je 0x405e15
and dword [esp + 0x48], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.00411520
test bl, bl
je 0x405e4f
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x406047
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x406047
mov eax, dword [eax + 0x2c]
add eax, ecx
add eax, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.00401d00
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 0x405d47
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 0x405d20
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 0x405d10
lea ecx, [esp + 0x6c]
call fcn.004114f0
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 0x406081
push ebp
lea ecx, [esp + 0x9c]
call fcn.00416d50
push ebp
push 2
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], 0x1a
call fcn.004173b0
cmp eax, ebp
je 0x40604c
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.00402220
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.00411520
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0x1b
call fcn.00411520
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0x1a
call fcn.00411520
push 0x4581ec
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.00433271
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 0x1e
call fcn.00411520
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1a
call fcn.00411520
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00416fd0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.00411520
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004065e0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00418ce0
jmp 0x4057a6
jmp fcn.0042a314
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 0x406125
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00416fd0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.00411520
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004065e0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00418ce0
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00416fd0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.00411520
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.00411520
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.00411520
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.00417b10
mov esi, eax
cmp esi, ebp
lea ecx, [esp + 0x98]
jne 0x406075
call fcn.00416da0
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x120], bl
call fcn.00416fd0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.00411520
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.004065e0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00418ce0
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00416fd0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.00411520
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.00411520
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.00411520
cmp esi, ebp
jne 0x40610c
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