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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101f6c48
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x40], ebx
je 0x100ca23c
mov eax, dword [edi + 4]
push 0x843
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x80], ebx
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, ebx
jl 0x100c9f4e
mov edi, dword [esp + 0x2c]
cmp edi, ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
je 0x100c9f07
mov ecx, dword [esp + 0x34]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x100c9f07
mov eax, edx
add eax, 4
mov dword [edx], esi
mov dword [esp + 0x30], eax
jmp 0x100c9f32
cmp edi, edx
mov dword [esp + 0x18], edx
jbe 0x100c9f15
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
call fcn.100294d0
mov ecx, dword [esp + 0x14]
push 2
push esi
push 0x100c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, ebx
jge 0x100c9ed6
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x100c9f61
mov edx, dword [esp + 0x30]
sub edx, eax
sar edx, 2
jne 0x100c9f8e
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x100c9f7d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jmp 0x100ca23c
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xa09c
lea edx, [esp + 0x5c]
push edx
call eax
mov byte [esp + 0x80], 1
mov ecx, dword [edi + 4]
push ecx
mov ecx, 1
mov edi, eax
call fcn.101cab90
add esp, 4
cmp eax, 2
sete byte [esp + 0x13]
mov byte [esp + 0x80], 0
cmp dword [esp + 0x70], 8
jb 0x100c9fe1
mov edx, dword [esp + 0x5c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x13], 0
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jne 0x100c9f61
mov edi, dword [ebp + 8]
cmp dword [edi + 0x34], ebx
je 0x100ca228
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x80], 2
mov ecx, dword [edi + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x38]
push edx
call eax
lea ecx, [esp + 0x38]
call fcn.100cb090
test al, al
jne 0x100ca217
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x100ca049
xor esi, esi
jmp 0x100ca052
mov esi, dword [esp + 0x30]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x38]
call fcn.100cb060
cmp eax, esi
jb 0x100ca217
mov byte [edi + 0x74], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x80], 3
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
mov eax, dword [esp + 0x30]
je 0x100ca08e
mov ebx, eax
sub ebx, ecx
sar ebx, 2
add ebx, 0xffffffff
js 0x100ca104
jmp 0x100ca09d
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100ca0aa
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x100ca0b4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + ebx*4]
lea esi, [esp + 0x38]
call fcn.100cb0d0
push eax
lea esi, [esp + 0x4c]
call fcn.100cb110
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100ca0df
mov ecx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x100ca0e9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esp + 0x14]
push 0
push eax
push 0x1008
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
sub ebx, 1
jns 0x100ca095
mov edx, dword [esp + 0x14]
xor edi, edi
push edi
push edi
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x100ca19e
lea ebx, [edi + 1]
mov eax, ebx
lea esi, [esp + 0x58]
call fcn.1019cb40
mov byte [esp + 0x80], 4
cmp dword [eax + 0x18], 8
jb 0x100ca141
mov eax, dword [eax + 4]
jmp 0x100ca144
add eax, 4
xor esi, esi
push esi
push eax
push 1
push esi
push edi
lea eax, [esp + 0x28]
push eax
call fcn.10029360
mov byte [esp + 0x80], 3
cmp dword [esp + 0x70], 8
jb 0x100ca172
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x14]
push esi
push esi
push 0x1004
push edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
mov edi, ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x100ca120
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [esp + 0x48]
push edx
call eax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100ca1c9
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
push 0
push 0x12f
push 0
call eax
mov byte [esp + 0x80], 2
lea ebx, [esp + 0x48]
call fcn.100cb260
mov byte [esp + 0x80], 0
lea ebx, [esp + 0x38]
call fcn.100cb260
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x100ca209
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
jmp 0x100ca23c
mov byte [esp + 0x80], 0
lea ebx, [esp + 0x38]
call fcn.100cb260
mov dword [esp + 0x80], 0xffffffff
lea esi, [esp + 0x28]
call fcn.100a0ee0
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4