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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145b4a
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
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 0x10040260
test edi, edi
jl 0x10040260
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1003ee69
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 0x1003ee6f
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 0x1003eec8
mov eax, edi
mov ecx, esi
call fcn.1003d430
test eax, eax
je 0x1003eec8
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 0x1003eeeb
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 0x1003eef1
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 0x1003f016
mov eax, dword [ebx]
mov edx, dword [eax + 0x5d4]
call edx
test eax, eax
push edi
mov ecx, esi
je 0x1003ef57
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
test eax, 0x100
je 0x1003f029
lea eax, [ebp + 0x10]
push eax
mov eax, edi
mov ecx, esi
call fcn.1003e1c0
jmp 0x1003f029
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
call eax
test eax, 0x100
je 0x1003f029
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 0x1003ef8f
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003e1c0
cmp byte [ebp + 0x1c], 0
jne 0x1003efbb
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 0x1003efbb
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003e1c0
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 0x1003f029
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 0x1003f029
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 0x1003f029
lea ecx, [ebp + 0x10]
push ecx
mov eax, edi
mov ecx, esi
call fcn.1003e1c0
jmp 0x1003f029
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 0x1003f055
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 0x1003f05b
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 0x1003f465
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 0x1003f0b7
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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 0x1003f243
mov eax, dword [ebx]
mov edx, dword [eax + 0x29c]
push 0xffffffffffffffff
mov ecx, ebx
call edx
jmp 0x10040260
cmp dword [esp + 0x38], 0
je 0x1003f25d
mov eax, dword [ebx]
mov edx, dword [eax + 0x288]
push 0
mov ecx, ebx
call edx
jmp 0x10040260
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 0x1003f394
cmp dword [esp + 0x1c], esi
jl 0x1003f360
jmp 0x1003f300
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 0x1003f359
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 0x1003f34e
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f300
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 0x1003f43b
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x1003f436
mov edx, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
jmp 0x1003f439
cmp eax, 1
jne 0x1003f41e
cmp dword [esp + 0x1c], 0
jl 0x1003f360
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 0x1003f407
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 0x1003f3ef
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003f3fc
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f3a4
jmp 0x1003f360
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 0x1003f360
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
jmp 0x1003f363
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 0x1004024c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x1004024c
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x20000
je 0x1003f7c3
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 0x1003f4a9
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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 0x1003f230
cmp dword [esp + 0x38], 0
jne 0x1003f24a
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 0x1003f738
cmp dword [esp + 0x1c], esi
jl 0x1003f360
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 0x1003f72c
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 0x1003f721
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f6d3
jmp 0x1003f360
cmp eax, 1
jne 0x1003f41e
cmp dword [esp + 0x1c], 0
jl 0x1003f360
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 0x1003f7b7
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 0x1003f79b
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003f7ac
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003f750
jmp 0x1003f360
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x80000
je 0x1003fb23
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 0x1003f807
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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.1005b770
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 0x1003f230
cmp dword [esp + 0x38], 0
jne 0x1003f24a
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 0x1003fa96
cmp dword [esp + 0x1c], esi
jl 0x1003f360
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 0x1003fa8a
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 0x1003fa7f
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003fa31
jmp 0x1003f360
cmp eax, 1
jne 0x1003f41e
cmp dword [esp + 0x1c], 0
jl 0x1003f360
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 0x1003fb17
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 0x1003fafb
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, 1
jne 0x1003fb0c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x1003f413
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor esi, esi
sub dword [esp + 0x1c], 1
jns 0x1003fab0
jmp 0x1003f360
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
test eax, 0x200
je 0x1003fd1d
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.1000b880
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.1000b8a0
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.1000b8a0
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
inc ecx
adc al, 0x2b
inc ecx
or al, 3
inc esp
and al, 4
cmp dword [eax + 4], ebx
jne 0x1004022b
cmp dword [eax + 0xc], ebx
je 0x100402ce
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.1003fc86
inc ebp
invalid
invalid
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x1004026e
mov dword [ebp + 0x10], edi
jmp 0x10040273
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.1003fc86
cmp byte [esi + ebx*4], bh
sbb al, 0x8b
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x100402bc
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x10040297
and eax, 0xffff
push eax
jmp 0x1004029b
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003fc4b
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x10040475
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x1004027c
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1004021d
call fcn.1003fc86
wait
push ebp
out 0x6c, eax
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x1004033a
add eax, esi
cmp dword [eax], ebx
je 0x1004033a
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10040335
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1004031f
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10040327
cmp edx, ebx
jne 0x10040475
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x100402f6
add eax, dword [eax + 4]
jmp 0x100402e3
mov dword [ebp + 0xc], ebx
jmp 0x10040345
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1004035d
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1004037b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100403d9
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100403c0
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100403c9
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100403d3
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100403b5
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1004033f
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10040426
dec eax
je 0x1004041d
sub eax, 3
je 0x10040414
mov dword [ebp - 4], 0x40
jmp 0x10040443
mov dword [ebp - 4], 4
jmp 0x10040429
mov dword [ebp - 4], 0x20
jmp 0x10040429
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10040475
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100403f5
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1003fc86
call 0xf5012c6
jne 0x10040480
push 1
push esi
call edi
mov eax, esi
jmp 0x10040481
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret