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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
movzx eax, byte [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 4
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx + 4]
mov ebx, dword [eax + ecx + 0x54]
push edi
lea edi, [eax + ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jne 0x1002e403
test byte [eax + 0x2a], 0x20
je 0x1002e393
mov ebx, dword [eax + 8]
jmp 0x1002e403
push 0x38
lea eax, [esp + 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, 1
mov word [esp + 0x7a], cx
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ecx
mov word [esp + 0x7c], dx
mov byte [esp + 0x7e], 5
mov dword [esp + 0x58], eax
mov dx, word [eax + 0x28]
mov word [esp + 0x78], dx
mov ax, word [eax + 0x26]
xor ecx, ecx
add esp, 0xc
mov word [esp + 0x28], ax
mov word [esp + 0x2a], cx
test byte [edi + 0x28], 1
jne 0x1002e3fb
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x40]
movzx eax, word [eax + 0x26]
mov dword [esp + 0x3c], eax
call fcn.1000c1d0
cmp dword [ebp + 0x10], 0
movzx ecx, ax
mov dword [esp + 0x34], ecx
jne 0x1002e570
mov eax, dword [esp + 0x24]
test byte [eax + 0x22], 0x80
jne 0x1002e570
mov edx, dword [eax]
mov eax, dword [edx]
test dword [eax + 0x18], 0x100000
je 0x1002e570
cmp dword [edi + 0x4c], 0
jne 0x1002e570
mov eax, dword [edi + 0x28]
test al, 1
jne 0x1002e570
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x2a], 0x20
jne 0x1002e570
test al, 0xa
jne 0x1002e570
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea edx, [eax + eax*2]
shl edx, 4
add edx, edi
mov dword [esp + 0x2c], edx
cmp edi, edx
jae 0x1002e55a
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x1002e540
push eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.100187f0
add esp, 8
test eax, eax
je 0x1002e53c
mov edx, 1
xor eax, eax
mov ecx, edx
mov word [esi + 0x18], dx
mov edx, dword [esi + 0x30]
mov word [esi + 0x2a], ax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x34]
mov dword [edx], edi
mov edx, dword [esp + 0x14]
lea eax, [ecx + eax + 4]
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], 0
jne 0x1002e4f9
test byte [edx + 0x2a], 2
jne 0x1002e4f9
add eax, 0x18
mov word [esi + 0x12], ax
mov edx, 0x2b
mov eax, edx
mov word [esi + 0x16], dx
call fcn.10003090
mov ecx, dword [esp + 0x84]
mov word [esi + 0x14], ax
mov eax, dword [esp + 0x80]
mov dword [esi + 0x24], 0x4000
or ecx, dword [edi + 0x24]
or eax, dword [edi + 0x20]
mov dword [esi + 4], ecx
push esi
mov ecx, ebp
mov dword [esi], eax
call fcn.10014cf0
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
add edi, 0x30
cmp dword [esp + 0x10], 0
je 0x1002e481
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp dword [esp + 0x10], 0
jne 0x1002e757
mov edi, dword [esp + 0x18]
lea esp, [esp]
test ebx, ebx
je 0x1002e757
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1002e599
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x30]
push edx
push eax
call fcn.10014df0
add esp, 0xc
test eax, eax
je 0x1002e745
mov ecx, dword [ebx + 8]
movzx edi, word [ecx]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov word [esi + 0x28], cx
mov byte [esi + 0x11], cl
mov ecx, dword [esp + 0x84]
mov word [esi + 0x2a], ax
mov eax, dword [esp + 0x80]
mov word [esi + 0x18], dx
mov word [esi + 0x12], dx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebx
mov eax, dword [edx + 0x30]
push eax
push ebx
mov ecx, ebp
call fcn.1000c710
add esp, 8
cmp dword [ebx + 0x28], 0
mov dword [esp + 0x3c], eax
jg 0x1002e630
mov edx, dword [esp + 0x1c]
neg eax
sbb al, al
and al, byte [esp + 0x20]
push edi
lea ecx, [edi + 0x10]
push esi
push edx
mov dword [esi + 0x24], pe_nt_image_headers32
mov byte [esi + 0x11], al
mov word [esi + 0x14], cx
call fcn.1000c5c0
push esi
mov ecx, ebp
call fcn.10014cf0
add esp, 0x10
mov word [esi + 0x16], di
test eax, eax
jne 0x1002e75b
jmp 0x1002e72a
test byte [ebx + 0x34], 0x20
je 0x1002e647
xor ebp, ebp
xor edx, edx
mov dword [esi + 0x24], 0x240
mov dword [esp + 0x38], edx
jmp 0x1002e675
mov eax, ebx
call fcn.1000c790
mov ebp, eax
mov eax, dword [esp + 0x18]
not ebp
and ebp, dword [eax + 0x40]
not edx
and edx, dword [eax + 0x44]
mov eax, ebp
or eax, edx
mov dword [esp + 0x38], edx
mov eax, 0x240
je 0x1002e672
mov eax, 0x200
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x1002e6c7
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x2a], 0x20
jne 0x1002e6c7
mov ecx, ebp
or ecx, edx
jne 0x1002e726
test byte [ebx + 0x34], 4
jne 0x1002e726
mov dx, word [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
cmp dx, word [ecx + 0x28]
jge 0x1002e726
mov edx, dword [esp + 0x24]
test byte [edx + 0x22], 4
jne 0x1002e726
cmp dword [0x10066010], eax
je 0x1002e726
mov ecx, edx
mov edx, dword [ecx]
mov ecx, dword [edx]
test byte [ecx + 0x3c], 0x40
jne 0x1002e726
mov edx, dword [esp + 0x14]
neg eax
sbb al, al
and al, byte [esp + 0x20]
mov byte [esi + 0x11], al
movsx ecx, word [ebx + 0x2c]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [edx + 0x28]
cdq
idiv ecx
or ebp, dword [esp + 0x38]
lea ecx, [eax + edi + 1]
mov word [esi + 0x14], cx
je 0x1002e702
lea eax, [edi + 0x10]
call fcn.10003090
mov word [esi + 0x14], ax
mov edx, dword [esp + 0x1c]
push edi
push esi
push edx
call fcn.1000c5c0
mov ecx, dword [esp + 0x88]
push esi
call fcn.10014cf0
add esp, 0x10
mov word [esi + 0x16], di
test eax, eax
jne 0x1002e75b
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x18]
push 0
push ebx
push edi
push ebp
call fcn.1002dd80
add esp, 0x10
cmp dword [edi + 0x4c], 0
mov dword [esp + 0x10], eax
jne 0x1002e757
inc dword [esp + 0x20]
cmp dword [esp + 0x10], 0
mov ebx, dword [ebx + 0x14]
je 0x1002e570
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret