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

Disassembly:
jmp 0x802650
sub esp, 0x170
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x174]
mov edx, dword [esp + 0x17c]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
lea esi, [ecx + 0xc]
mov dword [esp + 0x78], eax
xor edi, edi
mov dword [esp + 0x18], eax
inc edi
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], edx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x78], 0x40
push eax
mov ecx, esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edi
call fcn.0040e782
test al, al
je 0x8026d2
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00415dd9
mov ecx, dword [esp + 0x18c]
mov dword [eax + 4], ecx
mov edi, dword [esp + 0x70]
test edi, edi
je 0x802b8c
mov eax, dword [esp + 0x184]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
mov ecx, esi
mov ebx, dword [eax + edi*4 - 4]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
dec edi
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x78], edi
call fcn.004123cd
mov edx, dword [esp + 0x30]
test al, al
jne 0x8027c2
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0xc]
inc ebx
mov dword [esp + 0x10], edx
lea ecx, [edi + edi*2]
lea eax, [ebx*4]
cmp eax, ecx
jb 0x802736
lea eax, [edi + edi]
push eax
jmp 0x802747
mov ecx, edi
mov eax, edi
sub ecx, dword [esi + 8]
sub ecx, ebx
shr eax, 3
cmp ecx, eax
ja 0x802763
push edi
mov ecx, esi
call fcn.0040445d
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004123cd
mov edx, dword [esp + 0x10]
inc dword [esi + 4]
cmp dword [edx], 0xfffff000
je 0x802771
dec dword [esi + 8]
mov ebx, dword [esp + 0x1c]
lea eax, [edx + 0x24]
mov dword [edx], ebx
xorps xmm0, xmm0
movups xmmword [edx + 4], xmm0
movups xmmword [edx + 0x14], xmm0
movq qword [edx + 0x24], xmm0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 2
mov edi, dword [esp + 0x70]
cmp dword [edx + 4], 0
jne 0x802b4e
mov eax, dword [esp + 0x28]
inc eax
mov dword [edx + 0x10], ebx
mov dword [edx + 0xc], eax
mov dword [edx + 4], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x8027fb
mov dword [eax], ebx
add dword [edx + 4], 4
jmp 0x8028ec
mov edx, dword [edx]
sub eax, edx
sar eax, 2
mov dword [esp + 0x18], eax
cmp eax, 0x3fffffff
je 0x802b9a
sub ecx, edx
lea ebx, [eax + 1]
sar ecx, 2
mov eax, 0x3fffffff
mov edx, ecx
mov dword [esp + 0x14], ebx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x802843
mov eax, 0xfffffffc
mov edi, 0x3fffffff
push eax
call fcn.00404818
add esp, 4
mov ebx, eax
jmp 0x802887
lea eax, [ecx + edx]
mov edi, ebx
cmp eax, ebx
cmovae edi, eax
cmp edi, 0x3fffffff
ja 0x802b95
lea eax, [edi*4]
cmp eax, 0x1000
jb 0x802874
push eax
call fcn.00404818
add esp, 4
mov ebx, eax
jmp 0x802887
test eax, eax
je 0x802885
push eax
call fcn.00405e93
add esp, 4
mov ebx, eax
jmp 0x802887
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + eax*4]
mov dword [eax], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x8028ad
mov eax, ebx
jmp 0x8028ca
push ebx
push eax
push edx
call fcn.004112a7
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, 4
mov ecx, dword [ecx + 4]
push eax
push ecx
push edx
call fcn.004112a7
mov ecx, dword [esp + 0x30]
add esp, 0xc
push edi
push dword [esp + 0x18]
push ebx
call fcn.00408297
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push dword [edx + 0x1c]
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.0040d14d
mov ebx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ebx
lea eax, [ebx + eax*4]
mov dword [esp + 0x38], eax
cmp ebx, eax
je 0x802b38
call fcn.0040e1b0
mov byte [esp + 0xf], al
mov ebx, dword [ebx]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebx
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.0040e782
mov dl, byte [esp + 0xf]
test al, al
je 0x802981
mov ebx, dword [esi + 0xc]
test dl, dl
je 0x802968
mov eax, dword [esp + 0x34]
mov edi, dword [esi]
imul edx, ebx, 0x2c
lea ecx, [eax + 0x2c]
add edx, edi
cmp eax, edx
mov dl, byte [esp + 0xf]
cmovne edi, ecx
jmp 0x802970
mov edi, dword [esp + 0x34]
nop dword [eax]
mov ecx, dword [esi]
imul eax, ebx, 0x2c
mov ebx, dword [esp + 0x20]
add eax, ecx
test dl, dl
je 0x80299a
jmp 0x8029a0
mov ecx, dword [esi + 0xc]
mov edi, dword [esi]
imul eax, ecx, 0x2c
add eax, edi
test dl, dl
je 0x802993
mov ecx, edi
jmp 0x8029a0
mov edi, eax
imul eax, ecx, 0x2c
add eax, dword [esi]
mov ecx, eax
nop dword [eax]
cmp edi, ecx
je 0x8029ea
test dl, dl
lea eax, [edi - 0x2c]
cmove eax, edi
cmp dword [eax + 4], 0
je 0x8029ea
cmp ebx, dword [esp + 0x1c]
je 0x802b1f
mov ecx, dword [eax + 0x1c]
lea edi, [eax + 0x18]
cmp ecx, dword [edi + 8]
jb 0x8029d9
push 4
push 0
lea eax, [edi + 0xc]
mov ecx, edi
push eax
call fcn.00405e1b
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
jmp 0x802b1f
push ebx
push dword [esp + 0x20]
call dword [esp + 0x44]
add esp, 8
test al, al
je 0x802b1f
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004123cd
mov edi, dword [esp + 0x2c]
test al, al
jne 0x802ac2
mov ebx, dword [esi + 4]
mov edx, dword [esi + 0xc]
inc ebx
mov dword [esp + 0x10], edi
lea ecx, [edx + edx*2]
lea eax, [ebx*4]
cmp eax, ecx
jb 0x802a3a
lea eax, [edx + edx]
push eax
jmp 0x802a4b
mov ecx, edx
mov eax, edx
sub ecx, dword [esi + 8]
sub ecx, ebx
shr eax, 3
cmp ecx, eax
ja 0x802a67
push edx
mov ecx, esi
call fcn.0040445d
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004123cd
mov edi, dword [esp + 0x10]
inc dword [esi + 4]
cmp dword [edi], 0xfffff000
je 0x802a75
dec dword [esi + 8]
mov ebx, dword [esp + 0x20]
lea eax, [edi + 0x24]
mov dword [edi], ebx
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
movups xmmword [edi + 0x14], xmm0
movq qword [edi + 0x24], xmm0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 2
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x74]
jb 0x802ae5
push 4
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x78]
call fcn.00405e1b
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov dword [edi + 8], eax
mov ecx, dword [edi + 0x1c]
cmp ecx, dword [edi + 0x20]
jb 0x802b12
push 4
push 0
lea eax, [edi + 0x24]
push eax
lea ecx, [edi + 0x18]
call fcn.00405e1b
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
inc dword [edi + 0x1c]
mov ebx, dword [esp + 0x18]
add ebx, 4
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x38]
jne 0x802921
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x4c]
cmp ebx, eax
je 0x802b4a
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x8026e5
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x78]
cmp ecx, eax
je 0x802b70
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x178]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x170
ret 0x10
mov ebx, dword [esp + 0x184]
jmp 0x802b5a
call fcn.004104b5
call fcn.00409269
int3