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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449b9a
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630c8]
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.0040ec40
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.004137c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ec40
push ebp
lea ecx, [esp + 0x84]
mov byte [esp + 0x124], 2
call fcn.00415690
push ebp
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 3
call fcn.00415c40
cmp eax, ebp
je 0x405680
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.0040ec70
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 0x4055b6
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ec70
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ec70
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4055fc
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.00410650
add esp, 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00415910
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ec70
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ec70
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ec70
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 0x40580b
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.00415710
mov esi, eax
mov eax, dword [esp + 0x40]
mov ecx, edx
cdq
cmp edx, ecx
jg 0x40580b
jl 0x4056cf
cmp eax, esi
jae 0x40580b
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.004164f0
cmp eax, ebp
jne 0x405722
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.0040ec70
jmp 0x405680
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.0040ec70
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 0x4057a5
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ec70
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 7
call fcn.0040ec70
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4057eb
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.00410650
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 3
call fcn.0040ec70
jmp 0x405606
lea ecx, [esp + 0x80]
call fcn.004156e0
lea ecx, [esp + 0xcc]
call fcn.00417680
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x124], 0xb
call fcn.004185e0
cmp eax, ebp
je 0x405930
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.0040ec70
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 0x4058c7
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
call fcn.00431e5a
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], bl
call fcn.0040ec70
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ec70
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40590d
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.00410650
add esp, 8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417580
jmp 0x405606
mov eax, dword [esp + 0xd8]
cmp eax, ebp
mov edi, eax
mov dword [esp + 0x20], edi
jne 0x4059ed
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.0040ec70
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.00431e5a
mov byte [esp + 0x124], 0x10
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040ec70
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0xb
call fcn.0040ec70
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
jmp 0x40590f
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.configuration
call fcn.004010e0
mov ecx, edi
call fcn.00418810
mov esi, eax
cmp esi, ebp
jne 0x405a8b
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.0040ec70
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.00431e5a
mov byte [esp + 0x124], bl
jmp 0x4059bf
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.appSettings
call fcn.004010e0
mov ecx, esi
call fcn.00418810
mov esi, eax
cmp esi, ebp
jne 0x405b15
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.0040ec70
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 0x405a72
lea edx, [esp + 0xb0]
push edx
call fcn.004063d0
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.004189a0
cmp dword [ebx + 0x30], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x50], ebp
jle 0x405d03
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 0x405cea
mov edi, edi
cmp ecx, ebp
jl 0x405ea7
cmp ecx, eax
jge 0x405ea7
mov edx, dword [esp + 0xbc]
mov edi, dword [edx + ecx*4]
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x78], ebp
jle 0x405cd3
test ebp, ebp
jl 0x405ea7
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x3c]
jge 0x405ea7
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.00431c7a
add esp, 8
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call fcn.0040ec70
test bl, bl
je 0x405c2b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405ea7
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405ea7
mov eax, dword [eax + 0x2c]
add eax, ecx
push eax
lea ecx, [esi + 8]
call fcn.00404560
test eax, eax
je 0x405c2b
mov dword [esp + 0x74], 1
jmp 0x405c32
cmp dword [esp + 0x74], 0
je 0x405c5e
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.00431c7a
add esp, 8
test eax, eax
jne 0x405c5e
mov bl, 1
jmp 0x405c60
xor bl, bl
test byte [esp + 0x48], 1
je 0x405c75
and dword [esp + 0x48], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.0040ec70
test bl, bl
je 0x405caf
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x405ea7
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
cmp edx, dword [eax + 0x30]
jge 0x405ea7
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 0x405ba7
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 0x405b80
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 0x405b70
lea ecx, [esp + 0x6c]
call fcn.0040ec40
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 0x405ee1
push ebp
lea ecx, [esp + 0x9c]
call fcn.00415690
push ebp
push 2
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], 0x1a
call fcn.00415c40
cmp eax, ebp
je 0x405eac
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.0040ec70
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 0x1b
call fcn.0040ec70
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 0x1a
call fcn.0040ec70
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.00431e5a
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x120], 0x1e
call fcn.0040ec70
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 0x1a
call fcn.0040ec70
lea ecx, [esp + 0x18]
call fcn.00401190
push eax
push 1
call fcn.00410650
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00415910
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ec70
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406450
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417580
jmp 0x405606
jmp fcn.00428daa
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 0x405f85
lea ecx, [esp + 0x98]
mov byte [esp + 0x120], bl
call fcn.00415910
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ec70
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406450
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417580
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00415910
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ec70
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ec70
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ec70
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.004163a0
mov esi, eax
cmp esi, ebp
lea ecx, [esp + 0x98]
jne 0x405ed5
call fcn.004156e0
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x120], bl
call fcn.00415910
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x18
call fcn.0040ec70
lea ecx, [esp + 0xb0]
mov byte [esp + 0x120], 0xb
call fcn.00406450
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 3
call fcn.00417580
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 2
call fcn.00415910
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 1
call fcn.0040ec70
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], vtable.CPBasePath.0
call fcn.0040ec70
lea ecx, [esp + 0x18]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040ec70
cmp esi, ebp
jne 0x405f6c
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