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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x1039004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edx, dword [0x100136c]
xor eax, eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x7e], eax
mov word [esp + 0x82], ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x72], ax
mov eax, dword [0x1001370]
mov dword [esp + 0x64], eax
mov eax, dword [0x1001378]
mov edi, ecx
mov ecx, 2
mov word [esp + 0x74], cx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], edx
mov edx, dword [0x1001374]
mov dword [esp + 0x6c], eax
xor eax, eax
mov ecx, 0x17
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x68], edx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0x1c
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.01027a40
test eax, eax
je 0x1023715
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
jmp 0x102371d
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
call fcn.01027a40
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 0x90
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x102379c
mov dword [eax], esi
add eax, 4
add esi, 0xffffffff
mov dword [esp + 0x14], eax
mov ebx, eax
js 0x102379e
push 0x80
lea ecx, [ebx + 8]
push 0
push ecx
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x88], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
add ebx, 0x90
sub esi, 1
jns 0x1023768
mov eax, dword [esp + 0x14]
jmp 0x102379e
xor eax, eax
test eax, eax
mov dword [edi + 0x70], eax
jne 0x10237fe
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x10237ea
mov edx, dword [0x103b338]
test edx, edx
je 0x10237ea
cmp dword [0x10390bc], 0xffffffff
je 0x10237ea
mov eax, dword [0x103b338]
mov ecx, dword [0x103b140]
mov edx, dword [0x10390bc]
push 0
push eax
push 0x28a400
push ecx
push edx
call dword [0x1039080]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x1023847
mov ebx, 1
mov edi, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
movzx ecx, word [eax]
cmp cx, 2
je 0x1023824
cmp cx, 0x17
jne 0x102383d
mov ecx, dword [edi + 0x74]
lea ecx, [ecx + ecx*8]
shl ecx, 4
add ecx, dword [edi + 0x70]
push edi
call fcn.01027af0
test eax, eax
je 0x102383d
add dword [edi + 0x74], ebx
mov esi, dword [esi]
add esi, 0x1c
cmp dword [esi], 0
jne 0x1023810
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x10238c4
test byte [0x103a4fc], 2
je 0x102388a
mov ecx, dword [0x103b33c]
test ecx, ecx
je 0x102388a
cmp dword [0x10390bc], 0xffffffff
je 0x102388a
mov edx, dword [0x103b33c]
push eax
mov eax, dword [0x103b144]
mov ecx, dword [0x10390bc]
push edx
push 0x28f000
push eax
push ecx
call dword [0x1039080]
push 0x962
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
push edx
push 4
push 0xc04e0007
mov dword [esp + 0x20], eax
call fcn.010240e0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x5c]
imul esi, eax
xor ecx, ecx
mov eax, esi
mov edx, 0x1e0
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x102392a
add eax, 4
lea ecx, [esi - 1]
test ecx, ecx
mov dword [eax - 4], esi
mov dword [esp + 0x14], eax
mov ebx, eax
mov dword [esp + 0x10], ecx
jl 0x102392c
lea esp, [esp]
mov ecx, ebx
call fcn.0101f340
add ebx, 0x1e0
sub dword [esp + 0x10], 1
jns 0x1023910
mov eax, dword [esp + 0x14]
jmp 0x102392c
xor eax, eax
test eax, eax
mov dword [edi + 0x68], eax
jne 0x102398c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x1023978
mov ecx, dword [0x103b340]
test ecx, ecx
je 0x1023978
cmp dword [0x10390bc], 0xffffffff
je 0x1023978
mov edx, dword [0x103b340]
mov eax, dword [0x103b148]
mov ecx, dword [0x10390bc]
push 0
push edx
push 0x293000
push eax
push ecx
call dword [0x1039080]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
jle 0x10239c9
mov edx, dword [edi + 0x60]
mov eax, dword [edi + 0x6c]
push edx
mov edx, dword [edi + 0x64]
mov ecx, eax
push edx
imul ecx, ecx, 0x1e0
cdq
idiv dword [edi + 0x74]
add ecx, dword [edi + 0x68]
lea eax, [edx + edx*8]
shl eax, 4
add eax, dword [edi + 0x70]
call fcn.010227f0
test eax, eax
je 0x10239e0
add dword [edi + 0x6c], 1
add ebx, 1
cmp ebx, esi
jl 0x1023992
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
test byte [0x103a4fc], 2
je 0x1023a14
mov eax, dword [0x103b344]
test eax, eax
je 0x1023a14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b344]
mov edx, dword [0x103b14c]
push eax
push ecx
push 0x297400
push edx
call fcn.01024ec0
add esp, 0x10
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.01029f27
mov esp, ebp
pop ebp
ret