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

Disassembly:
push 0xffffffffffffffff
push 0x10143ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1019c828]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
xor ecx, ecx
push ecx
lea eax, [esp + 0x7c]
push eax
mov edx, eax
push esi
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, edx
mov byte [esp + 0xa4], 1
call fcn.10047950
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.10032260
mov ecx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x9c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
push ebp
call fcn.10044290
mov edi, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x58]
mov ebx, dword [esp + 0xbc]
lea eax, [edi + edi*2]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 8]
push esi
lea eax, [esp + 0x68]
push eax
push ebx
mov dword [esp + 0x78], edx
call fcn.10045670
add esp, 0x20
test al, al
jne 0x100482ba
mov eax, dword [esp + 0x7c]
cmp eax, esi
je 0x10048296
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
cmp eax, esi
je 0x10048afb
push eax
jmp 0x10048af3
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 8]
push ecx
push ebx
mov dword [esp + 0x64], eax
call fcn.10045670
add esp, 0xc
test al, al
je 0x10048285
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0x200
jmp 0x10048310
sub dword [esp + 0x1c], 1
test edi, edi
jle 0x1004872c
cmp esi, ebp
mov dword [esp + 0x34], ebp
jbe 0x1004833d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
cmp esi, ebp
jbe 0x1004833d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push edx
mov ecx, eax
push ecx
push esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.10047950
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x68]
push ecx
push edi
push ebx
push edx
call fcn.10047bb0
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x50], edi
or edi, 0xffffffff
add esp, 0x10
test esi, esi
mov dword [esp + 0x18], edi
jne 0x1004838a
xor eax, eax
jmp 0x10048391
mov eax, ebp
sub eax, esi
sar eax, 2
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
jle 0x10048721
mov dword [esp + 0x20], ecx
lea esp, [esp]
test esi, esi
je 0x100483c1
mov eax, ebp
sub eax, esi
sar eax, 2
cmp dword [esp + 0x20], eax
jb 0x100483cf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + eax*4]
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17], 0
xor edi, edi
call fcn.100397a0
test eax, eax
jle 0x1004843b
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x1004840c
mov eax, dword [esp + 0x80]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x10048412
call ebp
mov esi, dword [esp + 0x7c]
cmp ebx, dword [esi + edi*4]
jne 0x1004841c
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x78]
add edi, 1
call fcn.100397a0
cmp edi, eax
jl 0x100483f8
cmp byte [esp + 0x17], 0
jne 0x1004847f
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x1004844f
mov ecx, dword [esp + 0x20]
sub ebp, esi
sar ebp, 2
add ecx, 1
cmp ecx, ebp
jb 0x10048459
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov esi, dword [esi + edx*4 + 4]
mov edi, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
push esi
push ebx
push edi
push eax
call fcn.10044c80
add esp, 0x10
test al, al
jne 0x100484a6
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], 2
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
jl 0x100483b0
jmp 0x1004871d
cmp esi, 1
jne 0x10048557
mov edx, dword [edi + 0xf8]
test edx, edx
jne 0x100484bd
xor eax, eax
jmp 0x100484f3
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x100484cc
xor eax, eax
jmp 0x100484f3
mov ecx, dword [eax]
mov eax, dword [edi + 0x94]
lea ecx, [eax + ecx*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x100484ef
mov ecx, dword [ecx]
lea esi, [ebx + ebx*2]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
jmp 0x100484f3
mov eax, dword [ecx]
mov eax, dword [eax]
test edx, edx
mov esi, eax
mov dword [esp + 0x28], esi
jne 0x10048508
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x1004851e
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov ecx, dword [eax]
mov eax, dword [edi + 0x100]
test eax, eax
mov edx, dword [edi + 0x94]
lea ecx, [edx + ecx*4]
je 0x10048549
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2 + 2]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
cmp esi, 2
jne 0x1004860a
mov edx, dword [edi + 0xf8]
test edx, edx
jne 0x1004856e
xor eax, eax
jmp 0x100485a6
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x1004857d
xor eax, eax
jmp 0x100485a6
mov eax, dword [eax]
mov ecx, dword [edi + 0x94]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x100485a1
mov ecx, dword [ecx]
lea esi, [ebx + ebx*2]
movzx eax, word [eax + esi*2 + 2]
mov eax, dword [ecx + eax*4]
jmp 0x100485a6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test edx, edx
mov esi, eax
mov dword [esp + 0x28], esi
jne 0x100485bb
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x100485d1
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov ecx, dword [eax]
mov eax, dword [edi + 0x100]
test eax, eax
mov edx, dword [edi + 0x94]
lea ecx, [edx + ecx*4]
je 0x100485fc
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2 + 4]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
cmp esi, 3
jne 0x100486af
mov edx, dword [edi + 0xf8]
test edx, edx
jne 0x10048621
xor eax, eax
jmp 0x10048659
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x10048630
xor eax, eax
jmp 0x10048659
mov eax, dword [eax]
mov ecx, dword [edi + 0x94]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x10048654
mov ecx, dword [ecx]
lea esi, [ebx + ebx*2]
movzx eax, word [eax + esi*2 + 4]
mov eax, dword [ecx + eax*4]
jmp 0x10048659
mov eax, dword [ecx]
mov eax, dword [eax + 8]
test edx, edx
mov esi, eax
mov dword [esp + 0x28], esi
jne 0x1004866b
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov eax, ebx
shl eax, 4
add eax, edx
add eax, ebx
jne 0x1004867e
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov ecx, dword [eax]
mov eax, dword [edi + 0x100]
test eax, eax
mov edx, dword [edi + 0x94]
lea ecx, [edx + ecx*4]
je 0x100486a5
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
jmp 0x100486b3
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x40]
jne 0x100486c3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x100486c9
mov eax, esi
mov dword [esp + 0x18], esi
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xa8]
xor esi, esi
push esi
lea eax, [esp + 0x60]
push eax
push ecx
mov dword [esp + 0x70], edx
call fcn.10045670
add esp, 0xc
test al, al
je 0x10048285
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x7c]
call fcn.10032260
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
jg 0x10048310
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0x200
call fcn.100456f0
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
add esp, 4
jmp 0x10048765
mov ebx, dword [esp + 0x18]
sub dword [esp + 0x1c], 1
test ebx, ebx
jle 0x10048ac5
cmp esi, edi
mov ebp, edi
jbe 0x10048794
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
cmp esi, edi
jbe 0x10048794
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x70]
cmp esi, ebp
je 0x100487c0
sub edi, ebp
sar edi, 2
test edi, edi
lea eax, [edi*4]
lea ebx, [eax + esi]
jle 0x100487b8
push eax
push ebp
push eax
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x68]
push edx
push ebx
push eax
push ecx
call fcn.10047bb0
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
xor ecx, ecx
add esp, 0x10
cmp esi, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 0xffffffff
jne 0x100487fc
xor eax, eax
jmp 0x10048803
mov eax, edi
sub eax, esi
sar eax, 2
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
jle 0x10048aba
mov dword [esp + 0x20], ecx
lea esp, [esp]
test esi, esi
je 0x10048831
mov eax, edi
sub eax, esi
sar eax, 2
cmp dword [esp + 0x20], eax
jb 0x1004883f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + edx*4]
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17], 0
xor ebp, ebp
call fcn.100397a0
test eax, eax
jle 0x100488af
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x1004887c
mov eax, dword [esp + 0x80]
sub eax, esi
sar eax, 2
cmp ebp, eax
jb 0x10048882
call edi
mov esi, dword [esp + 0x7c]
cmp ebx, dword [esi + ebp*4]
jne 0x1004888c
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x78]
add ebp, 1
call fcn.100397a0
cmp ebp, eax
jl 0x10048868
cmp byte [esp + 0x17], 0
jne 0x10048a98
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x100488c3
mov eax, dword [esp + 0x20]
sub edi, esi
sar edi, 2
add eax, 1
cmp eax, edi
jb 0x100488cd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esi + ecx*4 + 4]
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push esi
push ebx
push edi
push edx
call fcn.10044c80
add esp, 0x10
test al, al
je 0x10048a98
cmp esi, 1
jne 0x1004894e
mov ecx, dword [edi + 0xf8]
test ecx, ecx
jne 0x1004890d
xor eax, eax
jmp 0x100489e9
mov eax, ebx
shl eax, 4
add eax, ecx
add eax, ebx
jne 0x1004891f
xor eax, eax
jmp 0x100489e9
mov eax, dword [eax]
mov ecx, dword [edi + 0x94]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x10048945
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
jmp 0x100489e9
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x100489e9
cmp esi, 2
jne 0x1004899e
mov ecx, dword [edi + 0xf8]
test ecx, ecx
jne 0x10048964
xor eax, eax
jmp 0x100489e9
mov eax, ebx
shl eax, 4
add eax, ecx
add eax, ebx
jne 0x10048973
xor eax, eax
jmp 0x100489e9
mov eax, dword [eax]
mov ecx, dword [edi + 0x94]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x10048997
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2 + 2]
mov eax, dword [ecx + eax*4]
jmp 0x100489e9
mov edx, dword [ecx]
mov eax, dword [edx + 4]
jmp 0x100489e9
cmp esi, 3
jne 0x100489ed
mov ecx, dword [edi + 0xf8]
test ecx, ecx
jne 0x100489b1
xor eax, eax
jmp 0x100489e9
mov eax, ebx
shl eax, 4
add eax, ecx
add eax, ebx
jne 0x100489c0
xor eax, eax
jmp 0x100489e9
mov eax, dword [eax]
mov ecx, dword [edi + 0x94]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 0x100]
test eax, eax
je 0x100489e4
mov ecx, dword [ecx]
lea edx, [ebx + ebx*2]
movzx eax, word [eax + edx*2 + 4]
mov eax, dword [ecx + eax*4]
jmp 0x100489e9
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
je 0x100489ff
mov eax, dword [esp + 0x38]
mov edx, dword [edi + 0x58]
lea ecx, [eax + eax*2]
mov dword [esp + 0x18], eax
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xa8]
mov eax, dword [eax + 8]
push 1
lea ecx, [esp + 0x60]
push ecx
push edx
mov dword [esp + 0x70], eax
call fcn.10045670
add esp, 0xc
test al, al
je 0x10048b15
mov esi, dword [esp + 0x7c]
test esi, esi
mov edx, dword [esp + 0x80]
je 0x10048a75
mov ecx, dword [esp + 0x84]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x10048a75
mov eax, edx
add eax, 4
mov dword [edx], ebx
mov dword [esp + 0x80], eax
jmp 0x10048a98
cmp esi, edx
mov edi, edx
jbe 0x10048a81
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x7c]
push edi
push eax
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.10050a40
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], 2
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
jl 0x10048820
cmp dword [esp + 0x1c], 0
jg 0x10048761
mov eax, dword [esp + 0x7c]
xor edi, edi
cmp eax, edi
je 0x10048adc
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x70]
add esp, 4
cmp esi, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
je 0x10048afb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10048b26
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
test eax, eax
jmp 0x100482ae