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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
test ecx, ecx
mov eax, dword [esi + 0x94]
je 0x819f98
mov edi, dword [ebx + 0xac]
mov ecx, eax
shl ecx, 4
lea ecx, [edi + ecx + 8]
mov dword [esp + 0x40], ecx
test edx, eax
jne 0x819f90
shl edx, 4
mov ebp, ebx
lea ecx, [edx - 8]
xor edi, edi
sar edx, 1
mov dword [esp + 0x38], ecx
lea ecx, [edx - 8]
add edx, 8
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [esi + 0x20f8], 3
sete al
lea eax, [eax + eax + 1]
cmp edi, eax
jge 0x819f30
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + edi*4 + 0x94]
mov ecx, dword [ebx + edi*4 + 0xa0]
test eax, eax
je 0x819eb5
mov eax, dword [esi + 0x4800]
test eax, eax
jne 0x819eb5
add ecx, 0x10
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x7c]
add edx, edx
mov eax, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x38], eax
jne 0x81a090
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x8d20]
mov dword [esp + 0x10], edx
imul eax, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
sub eax, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + edi*4 + 0xd0]
add ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x118]
add ecx, eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x114]
add ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 0x110]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
add ecx, eax
mov dword [esp], ecx
call dword [esi + 0x908c]
mov ecx, dword [esi + 0x8d20]
mov eax, dword [esp + 0x30]
add eax, dword [ebx + edi*4 + 0x94]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + edi*4 + 0xd0]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x118]
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x114]
add edx, eax
mov dword [esp + 4], edx
add eax, dword [ebp + 0x110]
mov dword [esp], eax
call dword [esi + 0x908c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
add edi, 1
add ebp, 0x10
jmp 0x819d72
add ecx, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x8d20]
mov dword [esp + 0x10], edx
imul eax, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
sub eax, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + edi*4 + 0xc4]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xe8]
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xe4]
add edx, eax
mov dword [esp + 4], edx
add eax, dword [ebp + 0xe0]
mov dword [esp], eax
call dword [esi + 0x908c]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x819eaa
mov edx, dword [ebx + edi*4 + 0x94]
jmp 0x819db9
mov eax, dword [ebx + 0x14c]
test eax, eax
je 0x819f90
mov edx, dword [esp + 0x38]
mov edi, dword [ebx + 0x94]
test edx, edx
jns 0x819f72
mov edx, edi
neg edx
shl edx, 6
lea ecx, [edi + edi]
lea eax, [eax + edx - 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x38], 0xffffffe0
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x7c]
add eax, 0x17
test ebp, ebp
cmove eax, dword [esp + 0x40]
cmp dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
jl 0x819fb0
nop
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [edx + eax]
shl ecx, 4
add ecx, 8
mov dword [esp + 0x40], ecx
jmp 0x819d48
mov ebp, dword [esp + 0x38]
mov edx, edi
shl edx, 4
neg edx
mov dword [esp + 0x48], edx
lea ecx, [edi + edi]
mov eax, ebp
imul eax, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], ecx
lea edx, [eax - 0x20]
lea eax, [ebp + 1]
imul eax, edi
mov edi, ebx
mov ebx, edx
lea eax, [eax + eax - 0x40]
mov esi, eax
jmp 0x81a02d
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], ecx
call dword [edx + 0x90a0]
cmp ebp, 0xffffffe8
mov edx, dword [edi + 0xac]
mov eax, dword [esp + 0x30]
jge 0x81a0a5
add ebp, 1
add ebx, dword [esp + 0x38]
add esi, dword [esp + 0x44]
cmp dword [esp + 0x40], ebp
jle 0x819f90
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0xc4]
mov eax, dword [edi + 0x14c]
mov ecx, dword [ecx + 0x3a64]
add edx, ebx
add eax, esi
test ecx, ecx
jne 0x819fe8
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], ecx
call dword [edx + 0x90a4]
cmp ebp, 0xffffffe8
mov eax, dword [esp + 0x30]
jl 0x81a018
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call dword [eax + 0x90ac]
jmp 0x81a018
mov eax, dword [ebx + edi*4 + 0xac]
sar eax, 1
add eax, 8
mov dword [esp + 0x38], eax
jmp 0x819dcf
mov ecx, dword [esp + 0x48]
add edx, 0x40
lea ecx, [eax + ecx]
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
imul edx, eax
mov dword [esp + 8], eax
lea eax, [ecx + edx*2]
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], eax
call dword [edx + 0x90a8]
jmp 0x81a018