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

Disassembly:
sub esp, 0x34
mov edx, dword [ecx]
push ebx
mov ebx, dword [eax + 0x20]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [eax + 0x1c]
lea eax, [edx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, ebp
shl eax, 4
add edx, eax
mov dword [esp + 0x20], edx
add edx, 0x10
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
sub eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x4c]
sar edx, 1
shl eax, 3
sub eax, edx
mov edx, dword [esi + 4]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
jg 0x30149c10
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
xor eax, eax
lea ecx, [ecx]
cmp ecx, eax
mov dword [esp + 0x28], eax
jle 0x30149f9a
lea esp, [esp]
mov ecx, dword [esi + 0x10]
push 1
push ecx
call fcn.30149310
add esp, 8
cmp eax, 1
jne 0x30149c71
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.3014f5a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x68]
add esp, 0x20
mov word [eax + ecx*2], 0
jmp 0x30149f36
mov eax, dword [esi + 0x10]
mov ecx, dword [0x302aaf64]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.3014d470
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 0x14
jne 0x30149cab
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
sub ecx, 0x10
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
jmp 0x30149f7c
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x48]
shr eax, 2
mov word [edx + ecx*2], ax
mov eax, dword [esi + 0x10]
mov ecx, dword [0x302aaf60]
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call fcn.3014d470
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x54]
movsx eax, word [edx + eax*2]
add esp, 0xc
cmp eax, 4
ja case.default.0x30149ce5
jmp dword [eax*4 + 0x3014a00c]
mov ecx, dword [esi + 0x10]
push 2
push ecx
call fcn.30149310
mov eax, dword [eax*4 + 0x30249718]
add eax, edi
add esp, 8
cmp eax, 1
jge 0x30149d0f
mov eax, 1
jmp 0x30149d19
cmp eax, 0x1f
jle 0x30149d19
mov eax, 0x1f
mov edi, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.3014d940
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x10]
push ebp
push edx
push edi
not eax
push ebx
mov dword [esp + 0x34], eax
push ecx
and eax, 8
push eax
call fcn.300fcf1d
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x3c]
push ebp
push edx
push edi
push ebx
push eax
and ecx, 4
push ecx
call fcn.300fcf1d
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x54]
add esp, 0x48
push ebp
push edx
push edi
push ebx
push eax
and ecx, 2
push ecx
call fcn.300fcf1d
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
push ebp
push edx
push edi
push ebx
push eax
and ecx, 1
push ecx
call fcn.300fcf1d
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esp + 0x60]
push eax
push edi
push ebx
push ecx
and edx, 2
push edx
call fcn.300fcf1d
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 0x10]
add esp, 0x48
push eax
push ecx
push edi
push ebx
push edx
mov eax, dword [esp + 0x40]
and eax, 1
push eax
call fcn.300fcf1d
mov ecx, dword [esi]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
call fcn.3014f820
add esp, 0x54
jmp 0x30149f2c
mov eax, dword [esi + 0x10]
push 2
push eax
call fcn.30149310
mov eax, dword [eax*4 + 0x30249718]
add eax, edi
add esp, 8
cmp eax, 1
jge 0x30149e5c
mov eax, 1
jmp 0x30149e66
cmp eax, 0x1f
jle 0x30149e66
mov eax, 0x1f
mov edi, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 8
push eax
call fcn.300fcf1d
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x24]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 4
push eax
call fcn.300fcf1d
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x3c]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 2
push eax
call fcn.300fcf1d
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x54]
add esp, 0x48
push ebp
push ecx
push edi
push ebx
push edx
and eax, 1
push eax
call fcn.300fcf1d
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push edi
push ebx
push eax
and ecx, 2
push ecx
call fcn.300fcf1d
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esp + 0x60]
push eax
push edi
push ebx
push ecx
and edx, 1
push edx
call fcn.300fcf1d
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
add esp, 0x48
push eax
mov eax, dword [esp + 0x14]
push ebp
push ecx
push edx
push eax
call fcn.3014c8c0
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x48]
mov dword [ecx + edx*4], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, 0x20
add edx, eax
add ecx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
add edx, eax
add ecx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov eax, 0x10
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
add eax, 0x10
inc ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi]
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x30149c20
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
add eax, eax
add edx, eax
mov dword [esp + 0x10], edx
add dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
add eax, eax
add edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
add eax, 0x10
cmp eax, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
jl 0x30149c0b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
pop edi
pop ebp
mov eax, 0x2c
pop ebx
add esp, 0x34
ret