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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx]
push ebp
mov ebp, dword [eax + 4]
cmp byte [ebp + 0x2c], 2
push esi
mov esi, dword [ebx + 0x18]
mov dword [esp + 0x74], 0
mov dword [esp + 0x10], ebp
je 0x1002d038
mov al, byte [ebp + 0xd]
neg al
pop esi
pop ebp
pop ebx
sbb eax, eax
and eax, 7
add eax, 1
add esp, 0x64
ret
movzx ecx, word [esi + 0x14]
cmp dword [ebx + 0x1c], ecx
jl 0x1002d04d
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
cmp byte [ebx + 0x40], 0
jne 0x1002d05f
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x64
ret
mov edx, dword [ebx + 0x14]
push edx
call fcn.10021980
add esp, 4
test eax, eax
je 0x1002d07b
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x64
ret
cmp byte [ebx + 0x41], 2
push edi
jne 0x1002d093
push ebx
call fcn.1002a4e0
add esp, 4
test eax, eax
jne 0x1002d287
mov edi, dword [ebx + 0x14]
push ebx
mov eax, ebp
call fcn.1002ccf0
add esp, 4
test eax, eax
jne 0x1002d287
mov eax, dword [esi + 0x48]
push eax
call fcn.1001e0b0
add esp, 4
test eax, eax
jne 0x1002d287
movzx ecx, word [esi + 0xe]
mov eax, dword [esi + 0x44]
mov edx, dword [ebx + 0x1c]
add ecx, eax
lea edi, [ecx + edx*2]
xor ecx, ecx
mov ch, byte [edi]
mov cl, byte [edi + 1]
add ecx, eax
cmp byte [esi + 4], 0
mov edi, ecx
mov dword [esp + 0x10], edi
jne 0x1002d0fe
movzx eax, byte [edi + 2]
movzx ecx, byte [edi + 3]
xor edx, edx
mov dh, byte [edi]
mov dl, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov dword [esp + 0x78], edx
mov ecx, edi
mov eax, esi
call fcn.10020060
test eax, eax
jne 0x1002d287
cmp byte [esi + 4], al
jne 0x1002d258
lea eax, [esp + 0x1c]
mov edx, ebx
xor ebp, ebp
call fcn.10005160
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.1002ac90
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002d239
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x48]
push edx
call fcn.1001e0b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1002d239
mov eax, dword [esp + 0x10]
push esi
call fcn.10004ac0
mov ecx, dword [ebx + 0x1c]
push ecx
mov ecx, eax
call fcn.10005290
mov eax, dword [esp + 0x3c]
movzx edx, word [eax + 0xe]
mov edi, dword [eax + 0x44]
mov ecx, dword [esp + 0x40]
add edx, edi
lea ebp, [edx + ecx*2]
xor edx, edx
mov dh, byte [ebp]
push eax
mov dl, byte [ebp + 1]
add edi, edx
mov eax, edi
call fcn.10004ac0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0x14]
sub ecx, 8
push 1
push ecx
call fcn.1000ac70
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x1002d1bb
lea edi, [eax + 7]
jmp 0x1002d239
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1c]
push 0
add edx, 4
push edx
add edi, 0xfffffffc
push edi
mov eax, ebp
mov edi, esi
call fcn.10020520
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1002d239
mov eax, dword [ebx + 0x1c]
mov edi, esi
call fcn.10004960
mov ecx, dword [esp + 0x78]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
push 0
push esi
mov byte [eax + 2], dl
mov byte [eax + 3], cl
call fcn.10021910
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002d239
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
push eax
call fcn.10005290
mov ecx, dword [esp + 0x38]
push edi
push ecx
call fcn.10021910
add esp, 0xc
mov edi, eax
push ebp
call fcn.10008de0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x1002d278
mov edx, dword [eax + 0x48]
push edx
call fcn.10017750
add esp, 4
jmp 0x1002d278
push esi
mov eax, edi
call fcn.10004ac0
mov ecx, dword [ebx + 0x1c]
push ecx
mov ecx, eax
call fcn.10005290
push 0
push esi
call fcn.10021910
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x1002d285
push ebx
call fcn.1001f270
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret