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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7740
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x38], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x1005a282
push 0x3e6
push 0x100c9afc
push ebx
call fcn.10001230
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
or dword [esi + 0x54], 0x200
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call edx
cmp eax, ebx
je 0x1005a2c1
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
mov dword [ebp - 0x20], ebx
call edx
cmp dword [ebp - 0x20], ebx
jne 0x1005a2c1
mov ecx, esi
call fcn.10039ac0
mov ecx, esi
call fcn.10059f50
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
push 4
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call eax
cmp eax, ebx
jge 0x1005a2f6
push 0x100d5204
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x34], ebx
call sub.MSVCR80.dll__CxxThrowException
mov edx, dword [ebp - 0x18]
push edx
call fcn.100af856
mov edi, eax
mov eax, dword [esi + 0x13c]
mov dword [edi], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x288]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], 4
call eax
cmp eax, ebx
jne 0x1005a35b
mov edx, dword [esi]
mov eax, dword [edx + 0x180]
mov ecx, esi
call eax
cmp eax, ebx
jne 0x1005a35b
cmp dword [esi + 0x164], 3
je 0x1005a35b
call fcn.1005c930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x11c]
call eax
cmp eax, ebx
je 0x1005a35b
or dword [esi + 0x54], 0x400000
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x54]
mov dword [edx + edi], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x144]
mov ebx, 4
add eax, ebx
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
add dword [ebp - 0x14], ebx
lea ecx, [esi + 0x30]
call fcn.1007ee00
lea edx, [ebp - 0x14]
push edx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x154]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x190]
call fcn.1007ee00
lea edx, [ebp - 0x14]
push edx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x194]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push edi
call fcn.10081230
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push edi
call fcn.10081230
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x7c]
mov dword [eax + edi], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x9c]
add eax, ebx
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
add dword [ebp - 0x14], ebx
add esp, 0x10
lea ecx, [esi + 0x15c]
call fcn.1007ee00
lea edx, [ebp - 0x14]
push edx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x50]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x160]
mov dword [eax + edi], edx
add dword [ebp - 0x14], ebx
add esp, 0xc
lea ecx, [esi + 0x158]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x168]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
mov dword [eax + edi], edx
add dword [ebp - 0x14], ebx
push edi
lea ecx, [esi + 0x34]
call fcn.10083910
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x40]
mov dword [eax + edi], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x44]
mov dword [edx + edi + 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x48]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x4c]
mov dword [eax + edi + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x170]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x174]
mov dword [eax + edi + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x178]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x17c]
mov dword [eax + edi + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x18]
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
add dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
lea ebx, [esi + 0x10]
mov eax, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov edx, dword [ebx + 4]
mov dword [ebp - 0x40], edx
je 0x1005a532
cmp eax, ebx
je 0x1005a53e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x40]
je 0x1005a58d
test eax, eax
jne 0x1005a553
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp ecx, dword [eax + 4]
jne 0x1005a561
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x24], 8
jb 0x1005a56c
mov ecx, dword [ecx + 0x10]
jmp 0x1005a56f
add ecx, 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.10006600
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x1005a524
cmp dword [esi + 0x13c], 1
jne 0x1005a61d
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
mov dword [ecx + edi], eax
mov eax, dword [esi + 8]
add dword [ebp - 0x14], 4
mov eax, dword [eax]
lea ebx, [esi + 4]
mov ecx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
test ebx, ebx
mov edx, dword [esi + 8]
lea eax, [esi + 4]
mov dword [ebp - 0x40], edx
je 0x1005a5c8
cmp ebx, eax
je 0x1005a5d1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x40]
je 0x1005a61d
test ebx, ebx
jne 0x1005a5e3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebx + 4]
jne 0x1005a5f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x24], 8
jb 0x1005a5fc
mov ecx, dword [ecx + 0x10]
jmp 0x1005a5ff
add ecx, 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.10006600
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
jmp 0x1005a5b7
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x164]
mov dword [edx + edi], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x64]
add eax, 4
mov dword [ebp - 0x14], eax
mov dword [eax + edi], ecx
mov eax, dword [ebp - 0x14]
mov dx, word [esi + 0x68]
add eax, 4
mov dword [ebp - 0x14], eax
mov word [eax + edi], dx
add dword [ebp - 0x14], 2
lea ecx, [esi + 0x3c]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x150]
call fcn.1007ee00
lea edx, [ebp - 0x14]
push edx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x148]
call fcn.1007ee00
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.100811c0
add esp, 0xc
lea ecx, [esi + 0x14c]
call fcn.1007ee00
lea edx, [ebp - 0x14]
push edx
push eax
push edi
call fcn.100811c0
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
add esp, 0xc
mov ecx, esi
call edx
cmp eax, 3
jne 0x1005a6e0
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x198]
push eax
call fcn.10055ca0
mov ecx, dword [esi + 0x198]
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [ebp - 0x14]
push eax
push edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x140]
mov ecx, esi
call edx
cmp eax, 3
jne 0x1005a715
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x19c]
push eax
call fcn.10055ca0
mov ecx, dword [esi + 0x19c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [ebp - 0x14]
push eax
push edi
call edx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push edi
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x1c]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, ebx
mov dword [ebp - 0x28], 0x10
call edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push str.NB.INFO.FILE.2.0
mov ecx, ebx
call eax
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x1005a79f
test edi, edi
je 0x1005a7ac
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
mov edi, dword [ebp + 8]
je 0x1005a821
push edi
mov ecx, esi
call fcn.10059530
mov ebx, eax
test ebx, ebx
je 0x1005a821
mov eax, 4
cmp dword [esi + 0x160], eax
jne 0x1005a7da
push edi
mov ecx, esi
call fcn.10059890
mov ebx, eax
jmp 0x1005a7fe
cmp dword [esi + 0x13c], eax
jl 0x1005a7fe
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push 0
push eax
lea eax, [esi + 0x1a0]
push eax
mov ecx, edi
call edx
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
test ebx, ebx
je 0x1005a821
mov eax, dword [esi]
mov edx, dword [eax + 0x288]
mov ecx, esi
call edx
test eax, eax
je 0x1005a821
mov eax, dword [esi]
mov edx, dword [eax + 0x2b8]
push edi
mov ecx, esi
call edx
mov ebx, eax
cmp dword [esi + 0x13c], 1
jle 0x1005a843
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
push eax
push edi
lea ecx, [esi + 0xb4]
call fcn.1002d290
test ebx, ebx
je 0x1005a8dd
cmp dword [ebp + 0xc], 0
je 0x1005a8dd
cmp dword [esi + 0x13c], 1
jle 0x1005a8dd
test byte [esi + 0x98], 1
je 0x1005a880
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
push eax
push edi
mov ecx, esi
call fcn.10058d00
jmp 0x1005a8db
mov ecx, dword [esi + 0x54]
mov edx, dword [esi]
mov eax, dword [edx + 0x180]
mov dword [ebp + 8], ecx
mov ecx, esi
call eax
test eax, eax
jne 0x1005a8b7
mov edx, dword [esi]
mov eax, dword [edx + 0x288]
mov ecx, esi
call eax
test eax, eax
jne 0x1005a8b7
mov edx, dword [esi]
mov eax, dword [edx + 0x1d8]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1005a8be
and dword [esi + 0x54], 0xf7bfffff
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
push eax
push edi
mov ecx, esi
call fcn.10058be0
mov ecx, dword [ebp + 8]
mov dword [esi + 0x54], ecx
mov ebx, eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc