Function at 0x1004f2e7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
push 0x10067de4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x78], 0
je 0x1004f313
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0x7c], 0
jne 0x1004f325
push str.NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1004f485
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x3c]
cmp dword [edx], 0
jne 0x1004f349
push str.isLoadOk
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1004f485
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
add eax, dword [ecx + 0x78]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 8]
and ecx, 0xffff0000
test ecx, ecx
jne 0x1004f3e1
mov edx, 0xffff
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
and eax, edx
mov dword [ebp - 0x10], eax
jmp 0x1004f447
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x1004f3fa
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jge 0x1004f432
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 8]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.1004ffa0
add esp, 8
test eax, eax
jne 0x1004f430
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x1004f432
jmp 0x1004f3f1
cmp dword [ebp - 0x30], 0
jl 0x1004f447
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + ecx*2]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1004f455
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x1c]
jl 0x1004f459
xor eax, eax
jmp 0x1004f485
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x20]
jbe 0x1004f47c
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
cmp dword [ebp - 0x38], eax
jae 0x1004f47c
xor eax, eax
jmp 0x1004f485
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [ecx + 8]
mov esp, ebp
pop ebp
ret 4