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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101181da
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
xor eax, esp
push eax
lea eax, [esp + 0x8a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x104]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x1c], esi
call eax
mov edi, dword [ebp + 8]
cmp edi, eax
jge 0x1003fe40
test edi, edi
jl 0x1003fe40
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1003ea49
mov ecx, dword [esi + 0x50]
sub ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003ea4f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x4c]
mov eax, edi
imul eax, eax, 0x1e60
mov edx, dword [eax + ecx + 0xa90]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xdc]
push edi
mov ecx, esi
call edx
and eax, 0xffff
mov dword [esp + 0x38], eax
jne 0x1003eaa8
mov eax, edi
mov ecx, esi
call fcn.1003d010
test eax, eax
je 0x1003eaa8
mov eax, dword [ebx]
mov edx, dword [eax + 0x128]
push 1
mov ecx, ebx
mov dword [ebp + 0x10], 0
call edx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1003eacb
mov ecx, dword [esi + 0x50]
sub ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003ead1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + ecx + 0xa84]
mov eax, dword [ebx]
mov edx, dword [eax + 0x50c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x5bc]
mov ecx, ebx
call edx
test eax, eax
mov ecx, ebx
jne 0x1003ebf6
mov eax, dword [ebx]
mov edx, dword [eax + 0x5d4]
call edx
test eax, eax
push edi
mov ecx, esi
je 0x1003eb37
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
test eax, 0x100
je 0x1003ec09
lea eax, [ebp + 0x10]
push eax
mov eax, edi
mov ecx, esi
call fcn.1003dda0
jmp 0x1003ec09
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
call eax
test eax, 0x100
je 0x1003ec09
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
je 0x1003eb6f
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003dda0
cmp byte [ebp + 0x1c], 0
jne 0x1003eb9b
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x48]
call eax
test eax, eax
je 0x1003eb9b
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003dda0
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
test eax, eax
jne 0x1003ec09
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
test ax, ax
je 0x1003ec09
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
jne 0x1003ec09
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003dda0
jmp 0x1003ec09
mov edx, dword [ebx]
mov eax, dword [edx + 0x128]
push 1
mov dword [ebp + 0x10], 0
call eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x8c], ecx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1003ec35
mov ecx, dword [esi + 0x50]
sub ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003ec3b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax + 0x1e58]
mov edx, dword [ebx]
mov edx, dword [edx + 0x5c8]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test al, 0x20
je 0x1003f045
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 0x288]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x1003ec97
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2a0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov eax, dword [eax + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
add edi, 0x2c0
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov edx, dword [eax + 0x7c]
push ecx
mov ecx, esi
add edi, 0x2c4
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov edx, dword [edx + 0xa4]
push 0
push 0
push eax
mov ecx, esi
add edi, 0x2a8
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
add eax, 0x28c
add esi, 0x58
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x29c
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x290
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x280
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x284
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x298
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x294
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x5e4]
push 0
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10c]
push 1
mov ecx, ebx
call edx
cmp dword [ebp + 0x10], 0
jne 0x1003ee23
mov eax, dword [ebx]
mov edx, dword [eax + 0x29c]
push 0xffffffffffffffff
mov ecx, ebx
call edx
jmp 0x1003fe40
cmp dword [esp + 0x38], 0
je 0x1003ee3d
mov eax, dword [ebx]
mov edx, dword [eax + 0x288]
push 0
mov ecx, ebx
call edx
jmp 0x1003fe40
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe0]
add esp, 4
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe4]
push eax
push ecx
mov ecx, edi
call edx
xor esi, esi
push 0x428
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x8b0], eax
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1003ef74
cmp dword [esp + 0x1c], esi
jl 0x1003ef40
jmp 0x1003eee0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0xec]
push 0
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003ef39
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x1003ef2e
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003eee0
or eax, 0xffffffff
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x29c]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1003f01b
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x1003f016
mov edx, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
jmp 0x1003f019
cmp eax, 1
jne 0x1003effe
cmp dword [esp + 0x1c], 0
jl 0x1003ef40
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xec]
push 0
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003efe7
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
je 0x1003efcf
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003efdc
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003ef84
jmp 0x1003ef40
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x1003ef40
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
jmp 0x1003ef43
or eax, 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x2ac]
lea ecx, [esp + 0x260]
push ecx
mov ecx, ebx
call edx
test esi, esi
je 0x1003fe2c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x1003fe2c
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x20000
je 0x1003f3a3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 0x288]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x1003f089
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2a0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov eax, dword [eax + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
add edi, 0x2c0
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov edx, dword [eax + 0x7c]
push ecx
mov ecx, esi
add edi, 0x2c4
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov edx, dword [edx + 0xa4]
push 0
push 0
push eax
mov ecx, esi
add edi, 0x2a8
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
add eax, 0x28c
add esi, 0x58
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x29c
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x290
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x280
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x284
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x298
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x294
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x5e4]
push 0
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10c]
push 1
mov ecx, ebx
call edx
cmp dword [ebp + 0x10], 0
je 0x1003ee10
cmp dword [esp + 0x38], 0
jne 0x1003ee2a
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe0]
add esp, 4
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe4]
push eax
push ecx
mov ecx, edi
call edx
xor esi, esi
push 0x428
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x8b0], 1
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1003f318
cmp dword [esp + 0x1c], esi
jl 0x1003ef40
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0xec]
push 0
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003f30c
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x1003f301
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f2b3
jmp 0x1003ef40
cmp eax, 1
jne 0x1003effe
cmp dword [esp + 0x1c], 0
jl 0x1003ef40
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xec]
push 0
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003f397
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
je 0x1003f37b
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003f38c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f330
jmp 0x1003ef40
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x80000
je 0x1003f703
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax + 0x288]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x1003f3e7
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2a0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov eax, dword [eax + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
add edi, 0x2c0
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov edx, dword [eax + 0x7c]
push ecx
mov ecx, esi
add edi, 0x2c4
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov edx, dword [edx + 0xa4]
push 0
push 0
push eax
mov ecx, esi
add edi, 0x2a8
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
add eax, 0x28c
add esi, 0x58
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x29c
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x290
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x280
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x284
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x298
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x294
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x5e4]
push 0
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10c]
push 1
mov ecx, ebx
call edx
cmp dword [ebp + 0x10], 0
je 0x1003ee10
cmp dword [esp + 0x38], 0
jne 0x1003ee2a
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe0]
add esp, 4
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe4]
push eax
push ecx
mov ecx, edi
call edx
xor esi, esi
push 0x428
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x8b0], 2
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1003f676
cmp dword [esp + 0x1c], esi
jl 0x1003ef40
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0xec]
push 0
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003f66a
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x1003f65f
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f611
jmp 0x1003ef40
cmp eax, 1
jne 0x1003effe
cmp dword [esp + 0x1c], 0
jl 0x1003ef40
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xec]
push 0
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003f6f7
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
je 0x1003f6db
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003f6ec
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003eff3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f690
jmp 0x1003ef40
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x200
je 0x1003f8fd
xor esi, esi
push 0x2c
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
call fcn.1000ba30
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
xor eax, eax
mov dword [esp + 0x8b0], 3
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call fcn.1000baa0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], esi
xor eax, eax
mov byte [esp + 0x8b0], 4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.1000baa0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
push 0x34
lea ecx, [esp + 0x90]
push esi
push ecx
mov byte [esp + 0x8bc], 5
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea edx, [esp + 0xc4]
push esi
push edx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
push 0x38
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], eax
mov dword [esp + 0x2e0], eax
mov dword [esp + 0x2e4], eax
mov dword [esp + 0x2e8], eax
lea eax, [esp + 0x2ec]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x308]
push ecx
call fcn.10008060
mov dword [esp + 0x8b0], 6
mov edx, dword [ebx]
xor eax, eax
mov dword [esp + 0x320], eax
mov dword [esp + 0x324], eax
mov dword [esp + 0x328], eax
mov eax, dword [edx + 0x11c]
mov ecx, ebx
call eax
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x1003f870
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, eax
lea esi, [esp + 0x3c]
call fcn.10008210
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add esi, 0x58
call fcn.1005bab0
push 0x1d88
push eax
lea ecx, [ebx + 0x1840]
push ecx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov esi, dword [ebx]
mov edx, dword [edx + 0xa4]
add esp, 0xc
push 0
push 0
push eax
add esi, 0x330
call edx
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
cmp dword [esp + 0x14], 0
je 0x1003f8e3
mov edx, dword [ebx]
mov eax, dword [edx + 0x11c]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x8b4], 0xffffffff
call fcn.10007fd0
jmp 0x1003fe40
mov edx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov edx, dword [edx + 0xbc]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x1003f92c
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + 0xd8]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov eax, dword [eax + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
add edi, 0xe8
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebx]
mov edx, dword [eax + 0x7c]
push ecx
mov ecx, esi
add edi, 0xec
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov edx, dword [edx + 0xa4]
push 0
push 0
push 0
push eax
mov ecx, esi
add edi, 0xe0
call edx
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
add eax, 0xc0
add esi, 0x58
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xd0
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xc4
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xac
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 4
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xa0
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 1
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xb0
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 5
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0x9c
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xa8
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 3
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xa4
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 2
and ecx, 1
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xb8
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xcc
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xb4
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
shr ecx, 6
and ecx, 0x3fffff
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xc8
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, dword [ebx]
add eax, 0xd4
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov eax, dword [eax + 0x30]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xf4
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x1964]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov eax, dword [ebx]
add eax, 0xf8
mov dword [esp + 0x14], eax
call fcn.1005bab0
mov ecx, dword [eax + 0x1968]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x5e4]
push 0
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x10c]
push 1
mov ecx, ebx
call eax
cmp dword [ebp + 0x10], 0
jne 0x1003fbf0
mov edx, dword [ebx]
mov eax, dword [edx + 0xd0]
push 0xffffffffffffffff
mov ecx, ebx
call eax
jmp 0x1003fe40
cmp dword [esp + 0x38], 0
je 0x1003fc0a
mov edx, dword [ebx]
mov eax, dword [edx + 0xbc]
push 0
mov ecx, ebx
call eax
jmp 0x1003fe40
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
call eax
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe0]
add esp, 4
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe4]
push eax
push ecx
mov ecx, edi
call edx
xor esi, esi
push 0x428
lea eax, [esp + 0x474]
push esi
push eax
mov dword [esp + 0x478], esi
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x8b0], 7
mov edx, dword [edi]
mov eax, dword [edx + 0xe0]
mov ecx, edi
call eax
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1003fd49
cmp dword [esp + 0x1c], esi
jl 0x1003fd15
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0xec]
push 0
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003fd0e
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x46c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x1003fd03
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003fdd2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003fcb2
or eax, 0xffffffff
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0xd0]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1003fdfa
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x1003fdf5
mov edx, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
jmp 0x1003fdf8
cmp eax, 1
jne 0x1003fddd
cmp dword [esp + 0x1c], 0
jl 0x1003fd15
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xec]
push 0
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x1003fdc6
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x46c]
push ecx
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
je 0x1003fdae
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003fdbb
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003fdd2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003fd60
jmp 0x1003fd15
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x1003fd15
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
jmp 0x1003fd18
or eax, 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xe4]
lea ecx, [esp + 0x690]
push ecx
mov ecx, ebx
call edx
test esi, esi
je 0x1003fe1b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1003fe2c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ebx, [esp + 0x28]
mov dword [esp + 0x8b0], 0xffffffff
call fcn.100035d0
mov ecx, dword [esp + 0x8a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x890]
xor ecx, esp
call fcn.1010dc50
mov esp, ebp
pop ebp
ret 0x18