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

Disassembly:
push 0xffffffffffffffff
push 0x101fc5fa
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf0]
xor ebx, ebx
cmp dword [ebp + 0xb0], ebx
je 0x1013e800
lea eax, [esp + 0x7c]
push eax
call fcn.1006bd00
mov dword [esp + 0xe8], ebx
mov ecx, dword [ebp + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0xf8]
push eax
call edx
test al, al
jne 0x1013e807
mov dword [esp + 0xe8], 0xffffffff
lea eax, [esp + 0x7c]
push eax
call fcn.10007e40
xor al, al
jmp 0x1013ed5d
mov eax, 7
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov byte [esp + 0xe8], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov byte [esp + 0xe8], 2
cmp dword [ebp + 0xb4], ebx
je 0x1013e8dc
mov esi, dword [ebp + 0xb4]
mov edi, dword [esi]
mov edx, dword [edi + 0x88]
mov ecx, esi
call edx
push eax
mov eax, dword [edi + 0x8c]
mov ecx, esi
call eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x1013e871
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov bl, 3
mov byte [esp + 0xe8], bl
test esi, esi
je 0x1013e8c5
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov byte [esp + 0xe8], 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
call fcn.10007880
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x20]
call fcn.10001dd0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xac]
lea ecx, [esp + 0x4c]
call fcn.10007880
mov byte [esp + 0xe8], 2
test esi, esi
je 0x1013e8da
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
xor ebx, ebx
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [ebp + 0xb8]
cmp ecx, ebx
mov eax, esp
lea esi, [esp + 0x68]
lea edi, [esp + 0x4c]
mov dword [esp + 0x24], esp
mov dword [eax], ecx
je 0x1013e905
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov byte [esp + 0xf0], 5
mov ecx, dword [ebp + 4]
push ecx
mov byte [esp + 0xf4], 2
mov edx, esi
mov ecx, edi
call fcn.100f7200
add esp, 0xc
test al, al
jne 0x1013e967
mov byte [esp + 0xe8], 1
lea ecx, [esp + 0x44]
call fcn.10001dd0
mov byte [esp + 0xe8], 0
lea ecx, [esp + 0x60]
call fcn.10001dd0
mov dword [esp + 0xe8], 0xffffffff
lea edx, [esp + 0x7c]
push edx
call fcn.10007e40
xor al, al
jmp 0x1013ed5d
mov ecx, dword [ebp + 0xb0]
push 1
push 1
lea edx, [esp + 0x23]
push edx
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x108]
mov byte [esp + 0x2f], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov eax, dword [ebp + 0xd8]
mov esi, dword [eax]
mov dword [esp + 0x1c], ebx
lea ebx, [ebp + 0xd4]
mov edi, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], ecx
je 0x1013e9bf
cmp edi, ebx
je 0x1013e9c5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je 0x1013ea11
test edi, edi
jne 0x1013e9d5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x1013e9e0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xf4]
cmp dword [esi + 0x14], edx
je 0x1013e9ff
lea esi, [esp + 0x3c]
call fcn.100ebda0
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
jmp 0x1013e9b0
cmp esi, dword [edi + 4]
jne 0x1013ea0a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], ecx
je 0x1013ea20
cmp edi, ebx
je 0x1013ea2a
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x1013ea30
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
jne 0x1013eaaf
mov byte [esp + 0xe8], 1
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x1013ea56
mov edx, dword [esp + 0x48]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
mov word [esp + 0x48], ax
mov byte [esp + 0xe8], al
cmp dword [esp + 0x78], edi
jb 0x1013ea84
mov eax, dword [esp + 0x64]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], eax
mov word [esp + 0x64], ax
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x7c]
push ecx
call fcn.10007e40
xor al, al
jmp 0x1013ed5d
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x1013eabe
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push eax
lea eax, [ebp + 4]
push eax
mov edx, 1
call fcn.10136e00
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
lea ecx, [esp + 0x90]
call fcn.10007880
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xac]
call fcn.10007880
test edi, edi
jne 0x1013eb03
call ebx
cmp esi, dword [edi + 4]
jne 0x1013eb0a
call ebx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x80]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x84]
push 0xffffffffffffffff
mov dword [esi + 0x18], ecx
push 0
lea ecx, [esi + 0x1c]
lea eax, [esp + 0x90]
call fcn.10007880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x38]
lea eax, [esp + 0xac]
call fcn.10007880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
lea eax, [esp + 0xc8]
call fcn.10007880
mov ecx, dword [ebp + 0xbc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x88]
push eax
call edx
cmp esi, dword [edi + 4]
mov ebx, eax
jne 0x1013eb80
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 0xc]
push ebx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 4]
push eax
lea edx, [ebx + 0x22]
mov ecx, esi
call fcn.10136e00
cmp dword [ebp + 0xc4], ebx
mov eax, dword [ebp + 0xcc]
mov dword [esp + 0x1c], eax
je 0x1013ecec
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xe8], 6
mov ebp, dword [ebp + 0xc4]
mov edx, dword [ebp]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
xor esi, esi
nop
cmp eax, ebx
je 0x1013ecc7
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x1013ecc7
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0xe8], 7
cmp eax, ebx
je 0x1013ec1b
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x1013ec1d
xor edi, edi
mov byte [esp + 0xe8], 6
mov eax, dword [esp + 0x80]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1013ec44
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x1013ec52
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebp
mov eax, dword [esp + 0x24]
jmp 0x1013ec58
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [eax + esi*4]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0x11
push 0x811
push ecx
call edi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1013ec83
mov ecx, dword [esp + 0x28]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x1013ec8d
call ebp
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + esi*4]
je 0x1013ecbf
cmp eax, ebx
je 0x1013eca3
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x1013eca9
call ebp
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
push ebx
push 2
push 0x813
push eax
call edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esi, 1
jmp 0x1013ebe0
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1013ece0
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xe8], 1
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x1013ed0c
mov ecx, dword [esp + 0x48]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x78], edi
jb 0x1013ed39
mov edx, dword [esp + 0x64]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0xe8], 0xffffffff
lea eax, [esp + 0x7c]
push eax
call fcn.10007e40
mov al, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.101d19cc
add esp, 0xd8
ret 8