Function at 0x4125f0
Capabilities:
Capture webcam image
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x18]
sub eax, 0
je 0x412d45
sub eax, 1
je 0x4128fd
sub eax, 2
jne 0x41280d
mov eax, dword [ebp + 0xc]
cmp eax, 0x200
jne 0x412787
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
test byte [esi + 0x84], 1
cwde
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], 0
je 0x412754
mov ebx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
jne 0x412761
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x445
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
mov ebx, eax
cmp ecx, dword [0x475064]
jne 0x4126ac
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x475068]
je 0x412761
test ebx, ebx
js 0x412761
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jge 0x412761
mov eax, dword [esi + 0x88]
cmp ebx, eax
je 0x412761
cmp eax, 0xffffffff
je 0x412761
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push ebx
push 0x417
push dword [esi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x20], 4
je 0x412761
or ebx, 0xffff0000
mov dword [esi + 0x8c], ebx
mov ebx, dword [esi + 0xc]
sub ebx, 1
jns 0x41271b
xor ebx, ebx
jmp 0x412721
mov eax, dword [esi + 8]
mov ebx, dword [eax + ebx*4]
movzx ecx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x202
push ebx
call esi
push 0
push 0x1b
push 0x100
push ebx
call esi
mov dword [ebp - 0x44], 1
jmp 0x412761
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp - 0x44], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [0x475064], eax
mov dword [0x475068], ecx
mov dword [edi], 0
jne 0x412ea5
jmp 0x41280d
cmp eax, 0x104
jne 0x41284a
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x12
jne 0x4127c1
cmp byte [esi + 0x84], 0
jge 0x4127c6
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x4127c6
test cl, 8
je 0x4127c6
push 1
mov ecx, esi
call fcn.004156b0
jmp 0x4127c6
cmp ebx, 0x20
je 0x412822
test byte [esi + 0x84], 1
jne 0x412842
mov eax, dword [esi + 4]
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
jne 0x412842
and byte [esi + 0x85], 0xf7
push 0
push 0xffffffffffffffff
push 0x448
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, esi
call fcn.004102a0
or byte [esi + 0x84], 0x40
mov dword [edi], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 6
jne 0x412842
or cl, 8
mov byte [esi + 0x85], cl
mov ecx, esi
push 0
call fcn.004156b0
mov dword [esi + 0xa8], ebx
jmp 0x412807
cmp eax, 0x105
jne 0x412865
mov al, byte [esi + 0x85]
test al, 8
jne 0x412807
or al, 8
mov byte [esi + 0x85], al
jmp 0x412807
cmp eax, 0x106
jne 0x4128a1
test byte [esi + 0x84], 1
jne 0x412807
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
je 0x412807
cmp dword [ebp + 0x10], 0x20
je 0x412807
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x4128d2
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push 0x100
call fcn.00410cc0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x412ea5
jmp 0x41280d
cmp eax, 0x213
je 0x412d0b
cmp eax, 0x102
jne 0x41280d
cmp dword [ebp + 0x10], 0x1b
mov dword [edi], 0
je 0x412ea5
jmp 0x41280d
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e
jne 0x412a0e
cmp dword [ebx + 8], 0xfffffd37
jne 0x4129a1
mov eax, dword [ebx]
cmp eax, dword [esi + 4]
jne 0x41299b
test byte [esi + 0x58], 8
mov byte [ebp - 0x45], 0
jne 0x412945
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x44]
setne byte [ebp - 0x45]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x412958
cmp byte [ebp - 0x45], 0
je 0x412962
test byte [ebx + 0x14], 1
jne 0x412c73
mov eax, dword [ebx + 0x14]
test al, 0x85
jne 0x41299b
test al, 0x10
je 0x412980
push dword [esi + 0x44]
push 0
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebx + 0x14], 0x20
je 0x41299b
push 0
push 0xffff0000
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [edi], 0
cmp dword [ebx + 8], 0xfffffd3a
jne 0x412a3a
mov eax, dword [ebx]
cmp eax, dword [esi + 4]
je 0x4129bd
mov dword [edi], 1
jmp 0x412a3a
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
je 0x4129ec
test byte [esi + 0x58], 4
je 0x4129e3
cmp dword [esi + 0xac], 0
jne 0x4129e3
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esi + 0xac], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebx + 0xc]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
and byte [esi + 0x84], 0xcf
push 1
push eax
jmp 0x412e98
cmp eax, 0x117
jne 0x412a3a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push 0x117
call fcn.00410ff0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x412ea5
call fcn.0040fb70
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x412aa0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x412a55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx], eax
push dword [esi + 4]
lea ebx, [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412a86
xor eax, eax
test esi, esi
cmove ebx, eax
mov eax, 1
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
xor ebx, ebx
mov dword [edi], ebx
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x112
jne 0x412b56
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x412ad1
cmp eax, 0x79
jne 0x412ac8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x412ad1
cmp dword [esi + 0xa8], 0x20
jne 0x412afe
cmp dword [ebp + 0x10], 0xf100
jne 0x412afe
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x412b1a
mov ecx, esi
call fcn.004102a0
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
and byte [esi + 0x84], 0xbf
mov dword [edi], 0
test eax, eax
jne 0x412ea5
jmp 0x41280d
cmp dword [esi + 0xa8], 0x20
je 0x412afe
test byte [esi + 0x84], 0x40
jne 0x412b4f
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x412b48
test cl, 8
je 0x412b48
push 1
mov ecx, esi
call fcn.004156b0
mov ecx, esi
call fcn.004158c0
mov eax, 1
jmp 0x412b00
cmp ecx, 0x52e
jne 0x412b7b
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
jne 0x412b91
lea eax, [ebp - 0x40]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
jmp 0x412f62
cmp ecx, 0x52f
jne 0x412bc4
lea eax, [ebp - 0x40]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.004105f0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x412be9
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x412c1a
mov eax, dword [ebp + 0x10]
cmp eax, 0x2a
je 0x412c08
cmp eax, 0x100b
je 0x412c08
cmp eax, 0x1023
jne 0x412d0b
mov ecx, esi
call fcn.0040fe00
mov dword [edi], 1
jmp 0x41280d
cmp ecx, 0x2b
jne 0x412c91
cmp dword [ebx], 1
jne 0x412d0b
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x412d0b
cmp dword [eax], 0x1313
jne 0x412d0b
test byte [esi + 0x85], 1
mov ecx, esi
push ebx
je 0x412c6e
call fcn.0040f630
mov dword [edi], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
call fcn.0040f210
mov dword [edi], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2c
jne 0x412cb3
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.00411550
jmp 0x412f75
cmp ecx, 6
jne 0x412d16
mov ecx, dword [ebp + 0x10]
mov al, byte [esi + 0x84]
neg cx
sbb cl, cl
and al, 0x7f
and cl, 0x80
or cl, al
mov byte [esi + 0x84], cl
jl 0x412cf5
mov al, byte [esi + 0x85]
and al, 6
cmp al, 6
jne 0x412cf5
push 0
mov ecx, esi
call fcn.004156b0
mov dword [edi], 1
jmp 0x41280d
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [edi], 1
jmp 0x41280d
cmp ecx, 0x4e
jne 0x41280d
cmp dword [ebx + 8], 0xfffffff4
jne 0x41280d
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00411c40
jmp 0x412f75
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x412d76
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0x10]
push 1
call fcn.00410870
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x412da4
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0x10]
push 2
call fcn.00410ab0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
jne 0x412e04
test byte [esi + 0x84], 2
jne 0x412df9
test byte [esi + 0x58], 1
jne 0x412df9
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov dword [edi], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
mov dword [edi], 0
jmp 0x412e89
cmp eax, 0x116
jne 0x412e3f
push 0
push 0
push 0x447
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 0x44]
movzx eax, ax
or eax, 0x900000
push eax
push 0x11f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [edi], 1
jmp 0x412e89
cmp eax, 0x117
jne 0x412e61
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push 0x117
call fcn.00410ff0
jmp 0x412e81
cmp eax, 0x11f
jne 0x412e89
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push 0x11f
call fcn.00411ad0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x412ea5
call fcn.0040fb20
cmp dword [ebp + 0xc], eax
jne 0x412ebd
push 0
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0040e700
mov dword [edi], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
call fcn.0040fb70
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x412f23
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x412ed8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx], eax
push dword [esi + 4]
lea ebx, [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412f09
xor eax, eax
test esi, esi
cmove ebx, eax
mov eax, 1
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
xor ebx, ebx
mov dword [edi], ebx
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x412f52
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00411e60
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
jne 0x412f86
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0x10]
push 0x120
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00411720
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x412ea5
jmp 0x41280d
cmp ecx, 0x100
jne 0x413043
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, 0x20
jne 0x412fb7
or ebx, 0x20000000
push ebx
push eax
push 0x104
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x412e9f
cmp eax, 0x25
je 0x412fc1
cmp eax, 0x27
jne 0x413030
movzx ebx, byte [esi + 0x85]
shr ebx, 5
not ebx
and ebx, 2
or ebx, 0x25
test byte [esi + 0x84], 1
jne 0x413030
push 0
push 0
push 0x447
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
push eax
cmp dword [ebp + 0x10], ebx
jne 0x412ffd
call fcn.0040fc50
jmp 0x413002
call fcn.0040fd30
cmp eax, 0xfffffffe
jne 0x41302e
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040e310
xor ecx, ecx
test al, al
mov eax, 1
cmovne ecx, eax
jmp 0x413030
xor ecx, ecx
mov dword [edi], 0
test ecx, ecx
jne 0x412ea5
jmp 0x41280d
cmp ecx, 0x101
jne 0x413060
cmp dword [ebp + 0x10], 0x20
mov dword [edi], 0
jne 0x41280d
jmp 0x412ea5
cmp ecx, 0x102
jne 0x413199
mov ebx, dword [ebp + 0x10]
mov eax, 1
cmp ebx, 0x20
je 0x4130db
push dword [esi + 0x5c]
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x412807
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x412807
mov dword [ebp - 0x40], 0
cmp ebx, 0xd
je 0x4130ee
lea eax, [ebp - 0x40]
push eax
movsx eax, bl
push eax
push 0x44e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4130ee
cmp bl, 0x2f
je 0x4130d8
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x44]
mov dword [edi], 0
test eax, eax
jne 0x412ea5
jmp 0x41280d
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x40]
movups xmmword [ebp - 0x14], xmm0
push 0x41d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x417
push dword [esi + 4]
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp - 0x34]
test al, 4
je 0x413187
test al, 8
jne 0x413187
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jg 0x413187
push 0
push 0x28
push 0x100
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp ebx, 0xd
je 0x4130d8
push 0
push dword [ebp - 0x40]
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4130d8
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x4130db
cmp ecx, 0x104
je 0x412807
cmp ecx, 0x105
je 0x412807
cmp ecx, 0x106
je 0x412807
cmp ecx, 0x52e
jne 0x4131e2
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52f
jne 0x413214
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.004105f0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x413239
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2b
jne 0x413279
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00410c40
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
je 0x41280d
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2c
jne 0x4132b2
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ebx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00411550
mov dword [edi], eax
xor eax, eax
cmp dword [ebp - 0x40], eax
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x37f
jne 0x41280d
mov ecx, dword [ebx + 4]
lea eax, [ecx - 0x200]
cmp eax, 0xd
ja 0x4132d5
and byte [esi + 0x85], 0xef
jmp 0x4132e7
lea eax, [ecx - 0x100]
cmp eax, 9
ja 0x4132e7
or byte [esi + 0x85], 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push 3
push ecx
push dword [ebx + 0xc]
mov ecx, esi
mov dword [ebp - 0x44], 0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call dword [eax]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0x18