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

Disassembly:
sub esp, 0xe0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf0]
mov eax, dword [esi + 0x290]
test eax, eax
push edi
mov ebx, ecx
je 0x417e42
mov eax, dword [esi + 8]
test eax, eax
je 0x417e42
mov eax, dword [ebx + 0x110]
movzx ecx, word [esi + 0xc]
mov edx, dword [str.N_G_chain_data_begin]
push eax
mov eax, dword [esi]
push 0
push 0
push ecx
lea edi, [esi + 0x14]
push edi
push edx
push 0
lea ebp, [ebx + 0x128]
push eax
mov ecx, ebp
call fcn.004168f0
mov ecx, dword [ebx + 0x110]
movzx edx, word [esi + 0xc]
mov eax, dword [str.N_H_chain_data_end]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push edx
push edi
push eax
add ecx, dword [esi]
push 0
push ecx
mov ecx, ebp
call fcn.004168f0
mov edx, dword [ebx + 0x110]
movzx eax, word [esi + 0xc]
mov ecx, dword [str.N0J_chain_data_max]
push edx
mov edx, dword [esi]
push 0
push 0
push eax
push edi
push ecx
add edx, dword [esi + 8]
push 0
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [esi]
add eax, 0x40
je 0x417e6d
mov ecx, dword [ebx + 0x110]
mov edx, dword [str.0___pTOC]
push ecx
push 0
push 0
push 0
push 0
push edx
push 8
push eax
lea ecx, [ebx + 0x128]
call fcn.004168f0
mov eax, dword [esi + 0x298]
test eax, eax
je 0x417e9b
mov ecx, dword [ebx + 0x110]
mov edx, dword [str.0___ROMHDR]
push ecx
push 0
push 0
push 0
push 0
push edx
push 0x54
push eax
lea ecx, [ebx + 0x128]
call fcn.004168f0
mov eax, dword [esi + 0x2a0]
test eax, eax
je 0x417ec9
mov ecx, dword [ebx + 0x110]
mov edx, dword [str.0___ROM_TOC_OFFSET]
push ecx
push 0
push 0
push 0
push 0
push edx
push 4
push eax
lea ecx, [ebx + 0x128]
call fcn.004168f0
mov eax, dword [ebx + 0x74]
cmp eax, 5
mov edi, dword [esi + 0x294]
jne 0x417f43
mov ecx, dword [ebx + 0x110]
mov eax, dword [edi]
push ecx
push 0
push 0
push 0
and eax, 0xffff0000
push 0
mov dword [ebx + 0x104], eax
mov edx, dword [str.0___DllFirst1]
push edx
push 0
lea ebp, [ebx + 0x114]
push eax
mov ecx, ebp
call fcn.004168f0
mov ecx, dword [ebx + 0x110]
mov eax, dword [edi]
push ecx
push 0
push 0
push 0
shl eax, 0x10
push 0
mov dword [ebx + 0x108], eax
mov edx, dword [str.0___DllFirst2]
push edx
push 0
push eax
mov ecx, ebp
call fcn.004168f0
mov ecx, dword [str.0___DllLast]
mov edx, dword [edi + 4]
jmp 0x417fdf
cmp eax, 6
jne 0x417ff9
mov ecx, dword [ebx + 0x110]
mov eax, dword [edi]
push ecx
push 0
push 0
push 0
and eax, 0xffff0000
push 0
mov dword [ebx + 0x104], eax
mov edx, dword [str.0___DllFirst1]
push edx
push 0
lea ebp, [ebx + 0x114]
push eax
mov ecx, ebp
call fcn.004168f0
mov ecx, dword [ebx + 0x110]
mov eax, dword [edi]
push ecx
push 0
push 0
push 0
shl eax, 0x10
push 0
mov dword [ebx + 0x108], eax
mov edx, dword [str.0___DllFirst2]
push edx
push 0
push eax
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___DllLast1]
mov edx, dword [edi + 4]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
and edx, 0xffff0000
push edx
mov ecx, ebp
call fcn.004168f0
mov edx, dword [edi + 4]
mov ecx, dword [str.0___DllLast2]
shl edx, 0x10
mov eax, dword [ebx + 0x110]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
mov ecx, ebp
push edx
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___PhysFirst]
mov edx, dword [edi + 8]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
lea ebp, [ebx + 0x128]
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___PhysLast]
mov edx, dword [edi + 0xc]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___RAMStart]
mov edx, dword [edi + 0x14]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___RAMFree]
mov edx, dword [edi + 0x18]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [str.0___RAMEnd]
mov edx, dword [edi + 0x1c]
push eax
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [esi + 0x2b4]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], ecx
jbe 0x4181df
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov eax, dword [esi + 0x2b8]
mov edx, dword [esp + 0x14]
push 0x10
add eax, edx
push eax
lea ecx, [ebx + 0x60]
call fcn.00404440
mov edi, eax
test edi, edi
mov dword [esp + 0x24], 0
jne 0x41810c
mov eax, 1
jmp 0x41815e
mov ecx, dword [ebx + 0x110]
mov edx, dword [esp + 0x10]
mov eax, dword [str.N_8_CopySec_Src]
push ecx
mov ecx, dword [edi + 8]
push 0
push 0
push edx
mov edx, dword [edi]
push 0
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [ebx + 0x110]
mov ecx, dword [esp + 0x10]
mov edx, dword [str.N_8_CopySec_Dst]
push eax
mov eax, dword [edi + 0xc]
push 0
push 0
push ecx
mov ecx, dword [edi + 4]
push 0
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004168f0
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x2b8]
mov esi, dword [esp + 0x14]
mov ecx, dword [str.N_8_COPYentry]
add edx, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], ecx
push 0xffffffffffffffff
lea ecx, [esi + 1]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x110]
push ecx
mov ecx, ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], eax
call fcn.00415900
mov eax, dword [ebp + 4]
lea edx, [esi + esi*8]
lea edi, [eax + edx*4]
mov eax, dword [esp + 0x10]
mov ecx, 9
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xf4]
mov edx, dword [ecx + 0x2b4]
add esi, 0x10
inc eax
cmp eax, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov esi, ecx
jb 0x4180e0
xor ecx, ecx
mov edx, dword [esi + 0x2a8]
cmp edx, ecx
je 0x4185a5
mov eax, dword [esi + 0x298]
add eax, 0x54
cmp edx, ecx
mov dword [esp + 0x1c], ecx
jbe 0x4185a5
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], 0x20
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x20], eax
jmp 0x418230
mov esi, dword [esp + 0xf4]
jmp 0x418230
mov eax, dword [esi + 0x2a4]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + 0xe0]
mov edx, dword [esp + 0x20]
add eax, edi
imul eax, eax, 0x164
add eax, esi
mov esi, dword [eax + 4]
push 0x20
push edx
lea ecx, [ebx + 0x60]
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], esi
call fcn.00404440
mov edi, eax
xor edx, edx
cmp edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edx
jne 0x418281
mov dword [esp + 0x24], 1
jmp 0x418514
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418290
sub ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
cmp dword [0x4753d8], 4
jb 0x4182ad
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x110]
mov dword [esp + 0x44], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], eax
mov eax, dword [str.0_5_name]
push 0xffffffffffffffff
lea edx, [esi + 1]
mov dword [esp + 0x58], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x48], eax
call fcn.00415900
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*8]
lea edi, [ecx + eax*4]
mov ecx, 9
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4753d8], 5
mov dword [esp + 0x28], 0x70
jae 0x41831c
mov dword [esp + 0x28], 0x6c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
push edx
push ecx
lea ecx, [ebx + 0x60]
call fcn.00404440
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], ecx
jne 0x41834c
mov dword [esp + 0x18], 1
jmp 0x418411
cmp word [eax], cx
mov dword [esp + 0x30], ecx
jbe 0x418411
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], 0x18
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x2c], ecx
jmp 0x418390
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x2c]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
add ecx, edx
mov edx, dword [str.N_9_o32]
mov dword [esp + 0xac], ecx
mov ecx, dword [ebx + 0x110]
mov dword [esp + 0xb4], edx
push 0xffffffffffffffff
lea edx, [esi + 1]
mov dword [esp + 0xcc], ecx
push edx
mov ecx, ebp
mov dword [esp + 0xc4], eax
call fcn.00415900
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x58]
lea eax, [esi + esi*8]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x30]
mov ecx, 9
lea esi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
movzx ecx, word [edx]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
jb 0x418390
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x14]
mov edx, dword [esp + 0x28]
mov esi, dword [ebp + 8]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [str.0_A_e32]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x110]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
lea edx, [esi + 1]
mov dword [esp + 0x84], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x7c], eax
call fcn.00415900
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*8]
lea edi, [ecx + eax*4]
mov ecx, 9
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x418510
mov ecx, dword [esp + 0x5c]
mov esi, dword [str.0_KulLoadOffset]
call fcn.0040c530
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x1c]
xor ecx, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebx + 0x110]
mov dword [esp + 0x90], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
lea edx, [esi + 1]
mov dword [esp + 0xa8], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x9c], eax
call fcn.00415900
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*8]
lea edi, [ecx + eax*4]
mov ecx, 9
lea esi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [str.N___TOCentry]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xdc], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xe0], ecx
push 0xffffffffffffffff
lea ecx, [esi + 1]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xdc], eax
mov eax, dword [ebx + 0x110]
push ecx
mov ecx, ebp
mov dword [esp + 0xec], edx
mov dword [esp + 0xf4], eax
call fcn.00415900
mov eax, dword [ebp + 4]
lea edx, [esi + esi*8]
lea edi, [eax + edx*4]
mov eax, dword [esp + 0x1c]
mov ecx, 9
lea esi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0xf4]
mov edx, dword [ecx + 0x2a8]
inc eax
add esi, 0x20
cmp eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jb 0x418221
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 4