Function at 0x414740
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x425e37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x174]
push ebx
push esi
push eax
push edx
lea eax, [esp + 0x70]
push 0x104
push eax
mov dword [esp + 0x30], ecx
call fcn.004144a0
mov cl, byte [esp + 0xb]
xor ebx, ebx
mov byte [esp + 0xc], cl
push ebx
lea ecx, [esp + 0x10]
call fcn.00418d00
lea edx, [esp + 0x68]
push 0x42edec
push edx
mov dword [esp + 0x17c], ebx
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4147e7
lea eax, [esp + 0x68]
push eax
push str.XMLLoader____Fail_to_open_file__s.
push 0x10001
call fcn.004090d0
add esp, 0xc
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x178], 0xffffffff
call fcn.00418d00
xor eax, eax
jmp 0x414adb
push ebp
push edi
push 2
push ebx
push esi
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
mov ecx, dword [esp + 0x2c]
mov ebp, eax
add esp, 0x10
lea eax, [ebp + 1]
cmp eax, ecx
ja 0x41481b
mov ecx, dword [0x428170]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00418930
jmp 0x414828
sub eax, ecx
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00418a70
lea ecx, [esp + 0x14]
call fcn.00418b60
mov edi, dword [esp + 0x18]
push ebx
push ebx
push esi
call sub.MSVCRT.dll_fseek
push esi
push ebp
push 1
push edi
call sub.MSVCRT.dll_fread
push esi
call sub.MSVCRT.dll_fclose
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
pop edi
not ecx
dec ecx
pop ebp
cmp ecx, eax
ja 0x414877
mov edx, dword [0x428170]
push edx
push ecx
lea ecx, [esp + 0x14]
call fcn.00418930
jmp 0x414884
sub ecx, eax
push ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00418a70
mov al, byte [esp + 0xb]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00418d00
mov cl, byte [esp + 0xb]
push ebx
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov byte [esp + 0x178], 1
call fcn.00418d00
lea edx, [esp + 0xb]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0x178], 2
call fcn.0041bc80
lea eax, [esp + 0x1f]
lea ecx, [esp + 0x58]
push eax
mov byte [esp + 0x178], 3
call fcn.0041bc80
mov dword [esp + 0x44], ebx
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov byte [esp + 0x178], 4
call fcn.00414560
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x414905
mov eax, 0x42816c
push 0x430d60
push eax
lea ecx, [esp + 0x2c]
call fcn.00419b90
test eax, eax
jne 0x414944
lea edx, [esp + 0x68]
push edx
push str.XMLLoader____Fail_to_parse__XML_file__s.
push 0x10001
call fcn.004090d0
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00419640
jmp 0x4147ca
mov eax, dword [esp + 0x188]
cmp eax, 0x43c
jne 0x4149bd
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00415f60
test eax, eax
jne 0x414a99
lea edx, [esp + 0x68]
push edx
push str.XMLLoader____Fail_to_fill_module_struct__s.
push 0x10001
call fcn.004090d0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00419710
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00419640
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x414a21
mov al, byte [ecx - 1]
cmp al, bl
je 0x414a17
cmp al, 0xff
je 0x414a17
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x414adb
cmp eax, ebx
je 0x414a28
cmp eax, 0x440
je 0x414a28
lea eax, [esp + 0x68]
push eax
push str.XMLLoader____Fail_to_identify_fill_struct__s.
push 0x10080
call fcn.004090d0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00419710
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00419640
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x414a21
mov al, byte [ecx - 1]
cmp al, bl
je 0x414a17
cmp al, 0xff
je 0x414a17
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x414adb
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x414adb
mov ecx, dword [esp + 0x18c]
mov edx, dword [esp + 0x184]
lea eax, [esp + 0x24]
mov dword [esi + 0x10c], ecx
push edx
push eax
mov ecx, esi
call fcn.00416c00
test eax, eax
jne 0x414a99
lea ecx, [esp + 0x68]
push ecx
push str.XMLLoader____Fail_to_fill_files_struct__s.
push 0x10001
call fcn.004090d0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00419710
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00419640
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x414a21
mov al, byte [ecx - 1]
cmp al, bl
je 0x414a17
cmp al, 0xff
je 0x414a17
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x414adb
lea ecx, [esp + 0x24]
call fcn.00419710
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00419640
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x414ad6
mov al, byte [ecx - 1]
cmp al, bl
je 0x414acc
cmp al, 0xff
je 0x414acc
dec al
mov byte [ecx - 1], al
jmp 0x414ad6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x16c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret 0x14