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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bcef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x160]
push esi
cmp eax, ebp
push edi
jne 0x412ffb
mov eax, dword [ebx + 0x120]
xor esi, esi
cmp eax, ebp
jle 0x4131e0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x74]
mov edx, dword [ebx + 0x11c]
mov ecx, dword [eax + esi*8 + 4]
mov eax, dword [edx + esi*4]
mov eax, dword [eax + 0x14]
cmp eax, 7
jne 0x412fc9
mov eax, dword [ecx + 0x1c]
push ebp
push ebp
push 0xf1
push eax
call edi
jmp 0x412fdd
cmp eax, 0xc
je 0x412fdd
cmp eax, 0xb
je 0x412fdd
push 0x4f7054
call fcn.004b32d5
mov eax, dword [ebx + 0x120]
inc esi
cmp esi, eax
jl 0x412fa2
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x158]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x28]
call fcn.0042c9fc
mov ecx, dword [ebx + 0x120]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x18], eax
jle 0x4131c7
mov ecx, dword [ebx + 0x11c]
mov edx, dword [ebx + 0x74]
mov edi, dword [ecx + eax*4]
mov ebp, dword [edx + eax*8 + 4]
mov edx, dword [esp + 0x14]
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
add esi, edx
dec eax
cmp eax, 9
ja case.default.0x41304c
jmp dword [eax*4 + 0x4131f4]
xor eax, eax
lea edx, [esp + 0x3c]
mov al, byte [esi]
push edx
push eax
call fcn.0041669c
add esp, 8
jmp 0x4130ca
movsx edx, word [esi]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.0041669c
add esp, 8
jmp 0x4130ca
mov ecx, dword [esi]
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.0041669c
add esp, 8
jmp 0x4130ca
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x3c]
push 0xa
push edx
push eax
push ecx
call fcn.0049f2f0
add esp, 0x10
jmp 0x4130ca
mov eax, dword [esi]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00416cac
add esp, 8
jmp 0x4130ca
mov edx, dword [esi + 4]
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
call fcn.00416d3c
add esp, 0xc
lea ecx, [esp + 0x3c]
push 0x4e96fc
push ecx
call fcn.0049f65a
add esp, 8
test eax, eax
jne 0x4130e4
mov byte [esp + 0x3c], al
lea edx, [esp + 0x3c]
mov ecx, ebp
push edx
call fcn.004b32d5
jmp case.default.0x41304c
fld qword [esi]
fst qword [esp + 0x1c]
fcomp qword [0x4cc688]
fnstsw ax
test ah, 0x40
je 0x413119
push 0x4f7054
mov ecx, ebp
call fcn.004b32d5
jmp case.default.0x41304c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.00416e5c
add esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.004b32d5
jmp case.default.0x41304c
mov ecx, dword [edi + 0x1c]
push 0
push ecx
push esi
call fcn.0042d4fc
add esp, 0xc
cmp eax, 0xffffffff
je 0x41315c
push esi
mov ecx, ebp
call fcn.004b32d5
jmp case.default.0x41304c
mov dword [esp + 0x38], 0
mov edx, dword [edi + 0x1c]
push edx
push esi
lea ecx, [esp + 0x30]
call fcn.0042d19c
push 0
lea ecx, [esp + 0x2c]
call fcn.0042cc8c
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
neg eax
sbb eax, eax
mov ecx, ebp
and eax, edx
push eax
call fcn.004b32d5
jmp case.default.0x41304c
mov cl, byte [esi]
xor eax, eax
test cl, cl
setne al
push 0
push eax
mov eax, dword [ebp + 0x1c]
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x120]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x413026
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x28], 0x4cbe38
call fcn.0042cbfc
mov ecx, dword [esp + 0x70]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret