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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edi
sar esi, 2
cmp esi, 0x80
jle 0x30003f42
cmp esi, edi
mov eax, esi
mov dword [esp + 0x14], eax
jge 0x30003f10
mov edi, edi
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jge 0x30003f01
mov ecx, dword [esp + 0x34]
mov edx, ecx
sub edx, esi
lea edx, [ebp + edx*4]
mov dword [esp + 0x20], edx
mov edx, esi
sar edx, 1
sub ecx, edx
lea ecx, [ebp + ecx*4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
lea edx, [ecx + ebx*4]
mov edi, eax
mov dword [esp + 0x38], edx
lea edx, [ebx + eax*2]
shl edi, 4
lea edx, [ecx + edx*4]
add eax, ebx
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push edx
push esi
call fcn.300046c0
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push esi
call fcn.30004a90
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push ecx
push esi
call fcn.300046c0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
shl eax, 2
add ebx, eax
add dword [esp + 0x50], edi
mov eax, dword [esp + 0x44]
add edx, edi
add ecx, edi
add esp, 0x18
cmp ebx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
jl 0x30003ea0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
shl eax, 2
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x30003e50
mov eax, dword [esp + 0x34]
mov edx, esi
sar edx, 1
sub eax, edx
lea ecx, [ebp + eax*4]
mov eax, dword [esp + 0x30]
mov edx, edi
push ecx
sub edx, esi
lea eax, [eax + edx*4]
push esi
call fcn.300046c0
sar esi, 2
add esp, 8
cmp esi, 0x80
jg 0x30003e40
cmp esi, edi
mov ecx, esi
mov dword [esp + 0x14], ecx
jge 0x30004189
mov eax, ecx
sub eax, esi
cmp eax, edi
mov dword [esp + 0x1c], eax
jge 0x3000417a
mov ebx, dword [esp + 0x34]
mov edx, ebx
sub edx, esi
lea edx, [ebp + edx*4]
mov dword [esp + 0x20], edx
mov edx, esi
sar edx, 1
mov edi, ebx
sub edi, edx
lea edx, [ebp + edi*4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov edx, ecx
shl edx, 4
mov dword [esp + 0x24], edx
lea edx, [edi + eax*4 + 0x180]
mov dword [esp + 0x38], edx
lea edx, [eax + ecx*2 + 0x60]
lea edx, [edi + edx*4]
add eax, ecx
mov dword [esp + 0x10], edx
lea edi, [edi + eax*4 + 0x180]
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffe80
push esi
call fcn.300046c0
add esp, 8
cmp esi, 0x80
jne 0x30004005
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
mov eax, dword [esp + 0x38]
lea ecx, [ebp + ebx*4 - 0x80]
add eax, 0xffffff00
call fcn.30005620
mov eax, dword [esp + 0x38]
add eax, 0xffffff80
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
mov eax, dword [esp + 0x38]
call fcn.30005070
jmp 0x30004038
lea ecx, [ebp + ebx*4 - 0x40]
call fcn.30005ca0
mov eax, dword [esp + 0x38]
add eax, 0xfffffec0
call fcn.30005e90
mov eax, dword [esp + 0x38]
add eax, 0xffffff00
call fcn.30005ca0
mov eax, dword [esp + 0x38]
add eax, 0xffffff40
call fcn.30005ca0
mov edx, dword [esp + 0x20]
push edx
lea eax, [edi - 0x180]
push esi
call fcn.30004a90
add esp, 8
cmp esi, 0x80
lea eax, [edi - 0x180]
jne 0x3000408b
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
lea ecx, [ebp + ebx*4 - 0x80]
lea eax, [edi - 0x100]
call fcn.30005620
lea eax, [edi - 0x80]
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
lea ecx, [ebp + ebx*4 - 0x80]
mov eax, edi
call fcn.30005620
jmp 0x300040b5
lea ecx, [ebp + ebx*4 - 0x40]
call fcn.30005ca0
lea eax, [edi - 0x140]
call fcn.30005e90
lea eax, [edi - 0x100]
call fcn.30005ca0
lea eax, [edi - 0xc0]
call fcn.30005e90
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffe80
push esi
call fcn.300046c0
add esp, 8
cmp esi, 0x80
jne 0x3000410a
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
mov eax, dword [esp + 0x10]
lea ecx, [ebp + ebx*4 - 0x80]
add eax, 0xffffff00
call fcn.30005620
mov eax, dword [esp + 0x10]
add eax, 0xffffff80
lea ecx, [ebp + ebx*4 - 0x20]
call fcn.30005070
mov eax, dword [esp + 0x10]
call fcn.30005070
jmp 0x3000413d
lea ecx, [ebp + ebx*4 - 0x40]
call fcn.30005ca0
mov eax, dword [esp + 0x10]
add eax, 0xfffffec0
call fcn.30005e90
mov eax, dword [esp + 0x10]
add eax, 0xffffff00
call fcn.30005ca0
mov eax, dword [esp + 0x10]
add eax, 0xffffff40
call fcn.30005ca0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
shl eax, 2
add ecx, eax
mov eax, dword [esp + 0x24]
add edx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
add edx, eax
add edi, eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
jl 0x30003fb0
mov ecx, dword [esp + 0x14]
mov edi, eax
shl ecx, 2
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x30003f50
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, esi
sar eax, 1
mov ecx, ebx
sub ecx, eax
sub edi, esi
lea edi, [edx + edi*4]
lea edx, [ebp + ecx*4]
push edx
push esi
mov eax, edi
call fcn.300046c0
add esp, 8
cmp esi, 0x80
jne 0x300041ef
lea esi, [ebp + ebx*4 - 0x20]
mov ecx, esi
call fcn.30005070
lea ecx, [ebp + ebx*4 - 0x80]
lea eax, [edi + 0x80]
call fcn.30005620
lea eax, [edi + 0x100]
mov ecx, esi
call fcn.30005070
lea eax, [edi + 0x180]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.30005070
lea ecx, [ebp + ebx*4 - 0x40]
call fcn.30005ca0
lea eax, [edi + 0x40]
call fcn.30005e90
lea eax, [edi + 0x80]
call fcn.30005ca0
lea eax, [edi + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
jmp fcn.30005ca0