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

Disassembly:
push ebp
push edi
mov edi, ecx
test edi, edi
je 0x10028402
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], 0
test eax, eax
jne 0x10028239
mov dword [edi + 0x28], eax
mov eax, 0x10023540
mov dword [edi + 0x20], 0x10023540
cmp dword [edi + 0x24], 0
jne 0x10028246
mov dword [edi + 0x24], 0x10023560
cmp edx, 0xffffffff
mov ebp, 6
cmovne ebp, edx
cmp ebp, 9
ja 0x10028402
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push esi
push 0x16c4
cmp eax, 0x10023540
jne 0x10028275
call ebx
add esp, 4
jmp 0x1002827f
push 1
push dword [edi + 0x28]
call eax
add esp, 0xc
mov esi, eax
test esi, esi
je 0x100283f8
mov dword [edi + 0x1c], esi
mov dword [esi], edi
mov dword [esi + 4], 0x2a
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0x8000
mov dword [esi + 0x34], 0x7fff
mov dword [esi + 0x50], 0x10
mov dword [esi + 0x4c], 0x10000
mov dword [esi + 0x54], 0xffff
mov dword [esi + 0x58], 6
mov eax, dword [edi + 0x20]
cmp eax, 0x10023540
jne 0x100282ea
push 0x10000
call ebx
add esp, 4
jmp 0x100282f9
push 2
push 0x8000
push dword [edi + 0x28]
call eax
add esp, 0xc
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x10023540
jne 0x10028314
add eax, eax
push eax
call ebx
add esp, 4
jmp 0x1002831f
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x4c]
cmp ecx, 0x10023540
jne 0x1002833a
add eax, eax
push eax
call ebx
add esp, 4
jmp 0x10028345
push 2
push eax
push dword [edi + 0x28]
call ecx
add esp, 0xc
mov dword [esi + 0x44], eax
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x169c], 0x8000
mov eax, dword [edi + 0x20]
cmp eax, 0x10023540
jne 0x10028372
push 0x20000
call ebx
add esp, 4
jmp 0x10028381
push 4
push 0x8000
push dword [edi + 0x28]
call eax
add esp, 0xc
cmp dword [esi + 0x38], 0
mov ecx, eax
mov edx, dword [esi + 0x169c]
mov dword [esi + 8], ecx
lea eax, [edx*4]
mov dword [esi + 0xc], eax
je 0x100283e3
cmp dword [esi + 0x40], 0
je 0x100283e3
cmp dword [esi + 0x44], 0
je 0x100283e3
test ecx, ecx
je 0x100283e3
mov eax, edx
mov dword [esi + 0x84], ebp
shr eax, 1
mov dword [esi + 0x88], 0
mov byte [esi + 0x24], 8
lea eax, [ecx + eax*2]
mov dword [esi + 0x16a4], eax
lea eax, [ecx + edx*2]
add eax, edx
mov ecx, edi
mov dword [esi + 0x1698], eax
pop esi
pop ebx
pop edi
pop ebp
jmp 0x10028410
mov dword [esi + 4], 0x29a
mov ecx, edi
mov dword [edi + 0x18], 0x1005e420
call fcn.10029190
pop esi
pop ebx
pop edi
mov eax, 0xfffffffc
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop ebp
ret
push edi
test ecx, ecx
je 0x100285e3
cmp dword [ecx + 0x20], 0
je 0x100285e3
cmp dword [ecx + 0x24], 0
je 0x100285e3
mov eax, dword [ecx + 0x1c]
lea edi, [ecx + 0x1c]
test eax, eax
je 0x100285e3
cmp dword [eax], ecx
jne 0x100285e3
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x10028474
cmp eax, 0x39
je 0x10028474
cmp eax, 0x45
je 0x10028474
cmp eax, 0x49
je 0x10028474
cmp eax, 0x5b
je 0x10028474
cmp eax, 0x67
je 0x10028474
cmp eax, 0x71
je 0x10028474
cmp eax, 0x29a
jne 0x100285e3
mov edx, dword [edi]
mov dword [ecx + 0x14], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x2c], 2
mov eax, dword [edx + 8]
push esi
mov esi, dword [edx + 0x18]
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], eax
test esi, esi
jns 0x100284ac
neg esi
mov dword [edx + 0x18], esi
cmp esi, 2
jne 0x100284bc
mov dword [edx + 4], 0x39
xor eax, eax
jmp 0x100284d5
push ebx
mov ebx, 0x2a
test esi, esi
mov eax, 0x71
cmovne eax, ebx
mov dword [edx + 4], eax
mov eax, 1
pop ebx
mov dword [ecx + 0x30], eax
lea eax, [edx + 0x94]
mov dword [edx + 0xb18], eax
mov ecx, edx
lea eax, [edx + 0x988]
mov dword [edx + 0x28], 0
mov dword [edx + 0xb24], eax
lea eax, [edx + 0xa7c]
mov dword [edx + 0xb30], eax
xor eax, eax
mov dword [edx + 0xb20], 0x1005d794
mov dword [edx + 0xb2c], 0x1005dcc0
mov dword [edx + 0xb38], 0x1005d7a8
mov word [edx + 0x16b8], ax
mov dword [edx + 0x16bc], eax
call fcn.1002c090
mov esi, dword [edi]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x1005d0da]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x1005d0d8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x1005d0dc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x1005d0de]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop edi
ret
mov eax, 0xfffffffe
pop edi
ret