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

Disassembly:
sub esp, 0x340
mov eax, dword [0x100a1040]
xor eax, esp
mov dword [esp + 0x33c], eax
mov eax, dword [esp + 0x348]
mov ecx, dword [esp + 0x344]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x350]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x358]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x360]
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x368]
push ebp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x378]
push esi
mov esi, dword [ecx]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], eax
push edi
test esi, esi
jle 0x1002b8b5
lea edx, [esi*4]
mov eax, 0x7fffffff
mov ecx, edx
lea edi, [esp + 0x7c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x16c]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [esp + 0x25c]
mov ecx, edx
rep stosd dword es:[edi], eax
xor eax, eax
mov ebx, dword [esp + 0x2c]
or ecx, 0xffffffff
or edx, ecx
mov dword [esp + 0x14], 0
mov edi, 0x7fffffff
mov dword [esp + 0x20], edx
or ebp, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edi
nop dword [eax]
inc ebp
mov dword [esp + 0x54], ebp
cmp ebp, esi
jge 0x1002b90a
mov edx, dword [esp + 0x30]
nop dword [eax]
cmp dword [edx + ebp*4], 0x80000000
jne 0x1002b8fe
inc ebp
cmp ebp, esi
jl 0x1002b8f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], ebp
test ecx, ecx
js 0x1002b9b6
test edx, edx
js 0x1002bc9d
cmp ebp, esi
jge 0x1002b96d
mov eax, dword [esp + 0x30]
mov esi, dword [eax + ebp*4]
mov ebx, dword [eax + edx*4]
lea ecx, [eax + ecx*4]
lea eax, [eax + ebp*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov ecx, esi
cmp eax, esi
mov dword [esp + 0x2c], ebx
cmovg esi, eax
cmovl ecx, eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x1c], esi
lea esi, [edx*4]
mov dword [esp + 0x24], esi
mov edi, dword [esi + eax]
cmp ecx, edi
cmovg edi, ecx
mov dword [esp + 0x28], edi
jmp 0x1002ba36
jne 0x1002ba02
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + edx*4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x2c]
mov ecx, dword [ecx]
mov dword [esp + 0x18], eax
lea esi, [edx*4]
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
mov edi, dword [esi + eax]
cmp ecx, edi
cmovg edi, ecx
mov dword [esp + 0x28], edi
jmp 0x1002ba3a
cmp ecx, 0xffffffff
jne 0x1002b9de
test edx, edx
js 0x1002bc9d
cmp ebp, esi
jge 0x1002ba02
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ebp*4]
mov ebx, dword [eax + edx*4]
lea eax, [eax + ebp*4]
jmp 0x1002b987
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
test edx, edx
js 0x1002bc9d
lea eax, [edx*4]
mov edx, dword [esp + 0x36c]
mov dword [esp + 0x24], eax
mov eax, dword [eax + edx]
cmp edi, eax
mov edx, dword [esp + 0x20]
cmovg eax, edi
mov edi, eax
mov dword [esp + 0x28], edi
test ecx, ecx
jns 0x1002ba32
cmp ebp, esi
jge 0x1002bc99
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp ebx, edi
jle 0x1002bc99
lea eax, [edi + 0x3c]
cmp ebx, eax
jg 0x1002bc99
lea eax, [ecx - 0x3c]
mov dword [esp + 0x68], eax
cmp ebx, eax
jl 0x1002bc99
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
cmp edi, eax
cmovl eax, edi
add eax, 0x3c
cmp ebx, eax
jg 0x1002bc95
cmp ecx, dword [esp + esi + 0x7c]
jne 0x1002ba9f
cmp edx, dword [esp + esi + 0x16c]
jne 0x1002ba9f
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + esi + 0x25c]
jge 0x1002bc95
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], 0
mov edx, dword [ecx + eax*4 + 0x18]
mov ecx, dword [ecx + eax*4 + 0x1c]
sub ecx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x5c]
add ecx, esi
mov dword [esp + 0x70], ecx
mov edx, dword [ecx]
cmp edx, 0x80000000
jne 0x1002bafa
mov edx, dword [esp + 0x40]
mov eax, dword [edx + eax*4 + 0x20a0]
mov edx, dword [esp + 0x378]
sub eax, dword [esi + edx]
lea edx, [eax - 0xc000000]
sar edx, 1
add edx, 0x2c14050
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
mov ecx, 0x1007d7bc
sub ecx, ebx
mov eax, dword [eax]
movzx edi, byte [ecx + eax]
mov eax, ebx
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx]
movzx esi, byte [eax + 0x1007d7bc]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x37c]
mov dword [esp + 0x6c], eax
push dword [eax]
push edx
push ebx
call fcn.1002c000
mov ebp, dword [esp + 0x70]
lea ecx, [esi + edi]
mov edi, dword [esp + 0x34]
add esp, 0xc
shl ecx, 0x11
add eax, ecx
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x60]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], eax
dec ebx
mov dword [esp + 0x2c], ebx
cmp ebx, dword [eax]
jge 0x1002bc5d
cmp ebx, dword [esp + 0x68]
jl 0x1002bc5d
mov eax, dword [esp + 0x14]
mov ecx, 0x1007d7bc
sub ecx, ebx
mov eax, dword [eax]
movzx edi, byte [ecx + eax]
mov eax, ebx
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx]
movzx esi, byte [eax + 0x1007d7bc]
mov eax, dword [esp + 0x6c]
push dword [eax]
mov eax, dword [esp + 0x74]
push dword [eax]
push ebx
call fcn.1002c000
add eax, dword [esp + 0x44]
add edi, esi
shl edi, 0x11
add esp, 0xc
sub edi, dword [esp + 0x74]
add edi, eax
cmp edi, 0x140000
jge 0x1002bc4f
push dword [esp + 0x364]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
push ebx
push ebp
lea eax, [eax + esi*2]
push eax
mov eax, dword [esp + 0x50]
lea eax, [eax + esi*4]
push eax
call fcn.100233d0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x44]
cmp eax, dword [edx + ecx]
jge 0x1002bc3c
mov edx, dword [esp + 0x30]
mov dword [edx + ecx], ebx
mov edx, dword [esp + 0x44]
mov dword [edx + ecx], eax
test ebp, ebp
jle 0x1002bc30
mov ecx, dword [esp + 0x78]
mov edx, ebp
lea eax, [ecx + esi*2]
mov esi, dword [esp + 0x48]
sub esi, ecx
nop
mov cx, word [eax + esi]
lea eax, [eax + 2]
mov word [eax - 2], cx
sub edx, 1
jne 0x1002bc20
mov dword [esp + 0x50], edi
mov dword [esp + 0x10], 1
cmp dword [esp + 0x4c], 0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
je 0x1002bc5d
mov dword [eax], ebx
jmp 0x1002bc5d
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
cmp ebx, edi
jg 0x1002bb65
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
mov dword [esp + edx*4 + 0x7c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x25c], ecx
mov eax, dword [eax]
mov dword [esp + edx*4 + 0x16c], eax
jmp 0x1002bc99
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002bcd7
cmp dword [esp + 0x384], 0
je 0x1002bcd7
or ecx, 0xffffffff
mov dword [esp + 0x14], 0
or edx, ecx
mov dword [esp + 0x18], 0
or ebp, ecx
mov dword [esp + 0x20], edx
mov edi, 0x7fffffff
xor eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jmp 0x1002bcdf
mov ecx, edx
mov dword [esp + 0x20], ebp
mov edx, ebp
mov esi, dword [esp + 0x58]
mov esi, dword [esi]
cmp ebp, esi
jl 0x1002b8e0
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b025
add esp, 0x340
ret