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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebx + 8]
cmp dword [edi + 0x24], 5
mov dword [ebp - 8], 1
jne 0x1010dbb
and dword [ebp - 8], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi*4 + reloc.msvcrt.dll___p__commode]
mov edx, dword [reloc.msvcrt.dll___p__commode]
imul eax, eax, 0x5c
mov eax, dword [eax + edx + 4]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 8], esi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [reloc.msvcrt.dll___p__commode]
imul ecx, ecx, 0x5c
mov ecx, dword [ecx + edx + 0x14]
or ecx, dword [eax + 8]
mov dword [eax + 8], ecx
cmp dword [edi + 0x34], 0
je 0x1010e17
push esi
call fcn.0100bb1b
mov edi, dword [edi + 0x38]
add edi, 4
mov esi, eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
cmp dword [reloc.msvcrt.dll___p__commode], 0
lea eax, [ebp - 4]
push eax
push esi
je 0x1010e8d
call fcn.010173a6
mov ecx, eax
test ecx, ecx
je 0x1010e68
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x6a], 1
mov byte [ebp - 0x69], 1
mov word [ebp - 0x6c], 0xc
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x11], 1
mov word [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 8]
cmp dword [eax + 0x24], 1
lea eax, [ebp - 0x6c]
jne 0x1010e84
test ecx, ecx
jne 0x1010f77
mov eax, dword [ebp + 0xc]
jmp 0x1010f77
test ecx, ecx
jne 0x1010edd
mov eax, dword [ebp + 0xc]
jmp 0x1010edd
call fcn.010173a6
test eax, eax
je 0x1010ee7
push esi
call fcn.0100bc1d
test eax, eax
jne 0x1010ee7
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
or byte [ebx + 0xc], 0x80
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x6a], 1
mov byte [ebp - 0x69], 1
mov word [ebp - 0x6c], 0xc
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x11], 1
mov word [ebp - 0x14], 0xc
lea eax, [ebp - 0x6c]
push ebx
push dword [ebp + 0x10]
push eax
jmp 0x1010fa2
push esi
call fcn.0100bc1d
test eax, eax
je 0x1010f9b
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.0101070f
test eax, eax
je 0x1010f1d
mov eax, dword [ebx + 8]
cmp dword [eax + 0x24], 1
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
jne 0x1010fa3
jmp 0x1010f7d
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.010173ab
xor eax, eax
or dword [ebx + 0xc], 0x40
mov ecx, dword [ebx + 8]
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and word [ebp - 0xa], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 0x6a], 1
mov byte [ebp - 0x69], 1
mov word [ebp - 0x6c], 0xc
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x11], 1
mov word [ebp - 0x14], 0xc
cmp dword [ecx + 0x24], 1
jne 0x1010f84
lea eax, [ebp - 0x6c]
push ebx
push dword [ebp + 0x10]
push eax
push esi
call fcn.01010039
jmp 0x1010fcc
push ebx
push dword [ebp + 0x10]
test al, 0x10
lea eax, [ebp - 0x6c]
push eax
je 0x1010fa2
push dword [ebp + 0xc]
push esi
call fcn.0101000b
jmp 0x1010fa8
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0100ff64
cmp dword [ebp - 8], 0
je 0x1010fcc
mov eax, dword [ebx + 8]
add eax, 0x30
push eax
call fcn.0101b1fb
mov eax, dword [ebx + 8]
add eax, 0x2c
push eax
call fcn.0101b1fb
push ebx
call fcn.0101bff6
pop edi
pop esi
pop ebx
leave
ret 0x14