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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005d7c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov byte [esp + 0x34], cl
push ebx
push esi
push edi
test cl, cl
je 0x100300ad
push 1
push 1
push 0x6ae9
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x64b5f5c1
push eax
push 1
push 0x37dc
mov edx, 0x2bd2
mov ecx, 0x7206
call fcn.1002ec52
add esp, 0x18
mov dword [esp + 0x18], 0xfffffff3
push 0
pop ebx
jmp 0x1002fbf5
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x84]
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
push 2
call fcn.1000f820
push ecx
lea eax, [esp + 0x88]
mov dword [esp + 0xf8], ebx
push eax
push ecx
push 0x201e
push 1
lea edx, [esp + 0xe0]
call fcn.1002eda8
mov eax, dword [esp + 0x90]
add esp, 0x14
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
dec edx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov edx, dword [esp + 0x84]
setne cl
mov dword [esp + 0x7c], ecx
mov eax, dword [edx]
imul eax, ecx
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, 4
setl cl
xor eax, eax
cmp ecx, dword [edx + 4]
setl al
cmp eax, dword [edx]
jle 0x1002fbcc
cmp dword [esp + 0x18], ebx
je 0x1002fbcc
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x84]
or dword [esp + 0xf4], 0xffffffff
mov dword [eax], ecx
lea ecx, [esp + 0x84]
call fcn.1000f8a3
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x25
jl 0x1002fb1d
mov dword [esp + 0x2c], 0x52c4
cmp dword [esp + 0x2c], 0x561e
jle 0x1002fcbb
push 0x1e32
push 0x23d6
push 0xbb
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov esi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], 0x423b
mov edi, ebx
mov dword [esp + 0x10], ebx
lea eax, [esi + edi]
mov edi, 0xc2c
mov dword [esp + 0x3c], eax
mov esi, eax
mov eax, esi
lea ecx, [esp + 0xd0]
cdq
push edx
push eax
call fcn.10001a5f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002fc6c
mov eax, dword [eax]
push eax
call fcn.10044793
pop ecx
push ebx
push 1
lea ecx, [esp + 0xd8]
call fcn.1001017e
inc esi
dec edi
jne 0x1002fc51
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x58f
jl 0x1002fc43
dec esi
dec dword [esp + 0x4c]
mov dword [esp + 0x14], esi
jne 0x1002fc3d
mov esi, dword [esp + 0x50]
inc esi
mov dword [esp + 0x50], esi
cmp esi, 0x3b71
jl 0x1002fc31
cmp dword [esp + 0x2c], 0x51d2
jge 0x1002fcd0
push str.oadsfhu_nsxaoidlm_lmikuyh_xrbmyjow_zfuuav_iladc_nnhmw_vhvrbxyn_gdim_cthm_zyvumzjl_blekw_ednaf
call fcn.10044793
pop ecx
or dword [esp + 0xf4], 0xffffffff
lea ecx, [esp + 0x90]
push 0xfffffffffffffff9
pop edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], 0xffff
push 3
call fcn.1000f820
mov dword [esp + 0x10], ebx
jmp 0x1002fd11
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov dword [eax + ecx*4], 0xbd76df3e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1002fcfb
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], edi
jg 0x1002fdf2
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], 0x925d3c09
mov dword [esp + 0x14], ebx
jmp 0x1002fd4b
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x54], 0x60b0ceaf
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x1002fd3b
mov eax, dword [esp + 0x54]
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
cmp eax, 0x33fd52a4
setle cl
xor eax, eax
cmp ecx, 7
setl al
cmp eax, 0x1a80
jge 0x1002fd7f
cmp dword [esp + 0x10], ebx
jne 0x1002fd7f
mov ecx, ebx
jmp 0x1002fd82
xor ecx, ecx
inc ecx
xor eax, eax
test ecx, ecx
sets al
cmp eax, 0xa3205f5
jg 0x1002fd9b
cmp dword [esp + 0x54], ebx
je 0x1002fd9b
xor edx, edx
inc edx
jmp 0x1002fd9d
mov edx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp edx, eax
setg cl
dec ecx
jne 0x1002fdaf
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
test eax, eax
setns cl
xor edx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
setg dl
mov dword [esi + 4], edx
dec dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jle 0x1002fd2d
lea ecx, [esp + 0x90]
call fcn.1000f8a3
push 0xa
pop eax
push 0x7c
mov byte [esp + 0x29], al
mov ecx, ebx
pop eax
push 2
mov byte [esp + 0x28], bl
mov dword [esp + 0x2a], 0x6c6e3b03
mov word [esp + 0x24], ax
pop esi
mov dword [esp + 0x48], ecx
cmp esi, 2
jne 0x1002fe32
push 4
pop ecx
push ecx
mov dword [esp + 0x4c], ecx
pop esi
jmp 0x1002fe8d
movzx edx, byte [esp + esi + 0x25]
mov eax, esi
sub eax, ecx
push 0x557f
push 0x1745
push 1
movzx eax, byte [esp + eax + 0x2e]
push 0x73c8
movzx ecx, word [esp + eax*2 + 0x30]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [esp + esi + 0x34]
add ecx, edx
mov edx, 0x4c00
mov word [esp + eax*2 + 0x30], cx
lea eax, [esp + 0x58]
push eax
push 0x5135
push ebx
push 0x4fa3
mov cl, 1
call fcn.10031211
mov ecx, dword [esp + 0x68]
add esp, 0x20
add esi, 2
cmp esi, 6
jb 0x1002fe22
xor eax, eax
mov word [esp + 0x22], ax
mov dword [esp + 0x14], 0xfff7
cmp dword [esp + 0x14], 0x25ef2c36
je 0x1002feb2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x14]
cmp ecx, eax
mov eax, dword [esp + 0x14]
setne dl
add eax, 0x9949
xor ecx, ecx
neg edx
cmp eax, 0xfffffff7
setne cl
cmp edx, ecx
jge 0x1002fefa
push 0x19e3
lea eax, [esp + 0x23]
mov byte [esp + 0x23], bl
push 0x2450
push eax
mov edx, 0x5dff
call fcn.10032705
add esp, 0xc
jmp 0x1002ff26
mov byte [esp + 0x1e], bl
cmp byte [esp + 0x1e], 0
je 0x1002ff26
push 0x6fdc
push ebx
push 0x1262
push 1
push 1
mov edx, 0x1bd2
mov ecx, 0x5d55
call fcn.1003141a
add esp, 0x14
xor eax, eax
mov dword [esp + 0xac], ebx
push 7
pop edi
mov word [esp + 0x9c], ax
lea ecx, [esp + 0x9c]
lea eax, [esp + 0x20]
mov dword [esp + 0xb0], edi
push eax
call fcn.1001a0ad
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xf8], 3
call fcn.1002e9cf
pop ecx
push ebx
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0xfc], 5
call fcn.10010352
push 0xa
pop eax
push 2
mov dword [esp + 0x24], ebx
mov ecx, ebx
mov dword [esp + 0x34], 0x2a030b02
mov byte [esp + 0x38], bl
mov dword [esp + 0x39], 0x60d20329
mov word [esp + 0x3d], 0x119
mov byte [esp + 0x3f], 4
mov word [esp + 0x64], ax
pop esi
cmp esi, 6
jne 0x1002ffc7
push 4
pop ecx
push 8
pop esi
jmp 0x1002ffee
movzx edx, byte [esp + esi + 0x31]
mov eax, esi
sub eax, ecx
movzx eax, byte [esp + eax + 0x2e]
movzx eax, word [esp + eax*2 + 0x5c]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [esp + esi + 0x30]
mov word [esp + eax*2 + 0x5c], cx
mov ecx, ebx
add esi, 2
cmp esi, 0xc
jb 0x1002ffba
xor eax, eax
mov dword [esp + 0xc8], edi
mov word [esp + 0x64], ax
lea ecx, [esp + 0xb4]
mov word [esp + 0xb4], ax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0xc8], ebx
call fcn.1001a0ad
xor eax, eax
mov byte [esp + 0xf4], 6
lea edi, [esp + 0x5c]
mov dword [esp + 0x44], ebx
stosd dword es:[edi], eax
push 0x18
pop ecx
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
cdq
idiv ecx
mov esi, eax
test esi, esi
je 0x10030086
push 0x279c
lea eax, [esp + 0x48]
mov edx, 0x4dc8
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc0]
push eax
push 1
push 0x3c2
call fcn.1002ef14
mov eax, dword [esp + 0x5c]
add esp, 0x18
inc eax
mov dword [esp + 0x44], eax
cmp eax, esi
jb 0x1003004e
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x68]
push eax
call fcn.10032da0
push ebx
push 1
lea ecx, [esp + 0xbc]
call fcn.10010352
lea ecx, [esp + 0x68]
call fcn.100331fa
jmp 0x100300ca
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [edx], ebx
cmp dword [edx], 1
jge 0x100300ca
mov esi, dword [ebp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [edx]
cmp dword [edx], 1
jl 0x100300bc
mov ecx, dword [esp + 0xec]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret