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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af13d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x50], ecx
sub eax, 0
je 0x461c19
sub eax, 1
je 0x461824
sub eax, 2
jne 0x46172a
mov eax, dword [ebp + 0xc]
cmp eax, 0x200
jne 0x4616a4
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
test byte [esi + 0x84], 1
movsx edx, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x4c], 0
je 0x461671
mov eax, dword [esi + 4]
push edx
push ecx
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
jne 0x46167e
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x18]
push eax
push 0
push 0x445
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
cmp ecx, dword [0x4e53d4]
jne 0x4615bf
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x4e53d8]
je 0x46167e
test eax, eax
js 0x46167e
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x50]
cmp ecx, eax
jge 0x46167e
mov eax, dword [esi + 0x88]
cmp ecx, eax
je 0x46167e
cmp eax, 0xffffffff
je 0x46167e
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 0
push eax
push ecx
push 0x417
push dword [esi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x2c], 4
je 0x46167e
mov eax, dword [ebp - 0x50]
or eax, 0xffff0000
mov dword [esi + 0x8c], eax
mov edx, dword [esi + 0xc]
sub edx, 1
jns 0x461633
xor edx, edx
jmp 0x461639
mov eax, dword [esi + 8]
mov edx, dword [eax + edx*4]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x50], edx
push ecx
push 0
push 0x202
push edx
call esi
push 0
push 0x1b
push 0x100
push dword [ebp - 0x50]
call esi
mov dword [ebp - 0x4c], 1
jmp 0x46167e
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [0x4e53d4], eax
mov dword [0x4e53d8], ecx
mov dword [edi], 0
jne 0x461d6b
jmp 0x46172a
cmp eax, 0x104
jne 0x461774
mov eax, dword [ebp + 0x10]
cmp eax, 0x12
jne 0x4616de
cmp byte [esi + 0x84], 0
jge 0x4616e3
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x4616e3
test cl, 8
je 0x4616e3
push 1
mov ecx, esi
call fcn.00466fb0
jmp 0x4616e3
cmp eax, 0x20
je 0x461749
test byte [esi + 0x84], 1
jne 0x461769
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
jne 0x461769
and byte [esi + 0x85], 0xf7
push 0
push 0xffffffffffffffff
push 0x448
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
call fcn.00459b10
or byte [esi + 0x84], 0x40
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret 0x18
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 6
jne 0x461769
or cl, 8
mov byte [esi + 0x85], cl
mov ecx, esi
push 0
call fcn.00466fb0
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xa8], ecx
jmp 0x461724
cmp eax, 0x105
jne 0x46178f
mov al, byte [esi + 0x85]
test al, 8
jne 0x461724
or al, 8
mov byte [esi + 0x85], al
jmp 0x461724
cmp eax, 0x106
jne 0x4617c5
test byte [esi + 0x84], 1
jne 0x461724
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
je 0x461724
cmp dword [ebp + 0x10], 0x20
je 0x461724
mov dword [edi], 0
mov eax, 1
jmp 0x46172c
cmp eax, 0x100
jne 0x4617f9
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push 0x100
mov ecx, esi
call fcn.0045e790
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
jmp 0x46172a
cmp eax, 0x213
je 0x461bd1
cmp eax, 0x102
jne 0x46172a
cmp dword [ebp + 0x10], 0x1b
mov dword [edi], 0
je 0x461d6b
jmp 0x46172a
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e
jne 0x46194d
cmp dword [ecx + 8], 0xfffffd37
jne 0x4618da
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
jne 0x4618d4
test byte [esi + 0x58], 8
mov byte [ebp - 0x51], 0
jne 0x461870
lea eax, [ebp - 0x4c]
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 - 0x4c]
setne byte [ebp - 0x51]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x461888
cmp byte [ebp - 0x51], 0
jne 0x461888
mov ecx, dword [ebp - 0x50]
jmp 0x461895
mov ecx, dword [ebp - 0x50]
test byte [ecx + 0x14], 1
jne 0x461cab
mov eax, dword [ecx + 0x14]
test al, 0x85
jne 0x4618d4
test al, 0x10
je 0x4618b6
push dword [esi + 0x44]
push 0
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x50]
test byte [ecx + 0x14], 0x20
je 0x4618d4
push 0
push 0xffff0000
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x50]
mov dword [edi], 0
cmp dword [ecx + 8], 0xfffffd3a
jne 0x46197c
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
je 0x4618f9
mov dword [edi], 1
jmp 0x46197c
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
je 0x461928
test byte [esi + 0x58], 4
je 0x46191f
cmp dword [esi + 0xac], 0
jne 0x46191f
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esi + 0xac], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x50]
push 0
push dword [ecx + 0xc]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and byte [esi + 0x84], 0xcf
push 1
push eax
jmp 0x461d5e
cmp eax, 0x117
jne 0x46197c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push 0x117
mov ecx, esi
call fcn.0045ebb0
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
call fcn.00458e30
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x4619c8
cmp dword [ebp + 0x10], 0
je 0x461999
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4619ba
xor ecx, ecx
lea eax, [esi + 4]
test esi, esi
cmove eax, ecx
mov dword [edi], eax
lea eax, [ecx + 1]
jmp 0x46172c
xor eax, eax
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x112
jne 0x461a7e
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x4619f9
cmp eax, 0x79
jne 0x4619f0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x4619f9
cmp dword [esi + 0xa8], 0x20
jne 0x461a26
cmp dword [ebp + 0x10], 0xf100
jne 0x461a26
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x461a42
mov ecx, esi
call fcn.00459b10
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
and byte [esi + 0x84], 0xbf
mov dword [edi], 0
test eax, eax
jne 0x461d6b
jmp 0x46172a
cmp dword [esi + 0xa8], 0x20
je 0x461a26
test byte [esi + 0x84], 0x40
jne 0x461a77
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x461a70
test cl, 8
je 0x461a70
push 1
mov ecx, esi
call fcn.00466fb0
mov ecx, esi
call fcn.00467570
mov eax, 1
jmp 0x461a28
cmp ecx, 0x52e
jne 0x461a95
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x120
je 0x461dee
cmp ecx, 0x52f
jne 0x461adf
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4619ba
cmp dword [ecx], 0x18
jne 0x4619ba
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push dword [ecx + 8]
push dword [ecx + 4]
mov ecx, esi
call fcn.004675a0
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x52d
jne 0x461af6
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x1a
jne 0x461b27
mov eax, dword [ebp + 0x10]
cmp eax, 0x2a
je 0x461b15
cmp eax, 0x100b
je 0x461b15
cmp eax, 0x1023
jne 0x461bd1
mov ecx, esi
call fcn.00459490
mov dword [edi], 1
jmp 0x46172a
cmp ecx, 0x2b
jne 0x461b58
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x4c], 1
push 0x2b
call fcn.0045da80
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
jmp 0x46172a
cmp ecx, 0x2c
jne 0x461b89
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x4c], 1
push 0x2c
call fcn.0045f240
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
jmp 0x46172a
cmp ecx, 6
jne 0x461bdc
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 0x461bbb
mov al, byte [esi + 0x85]
and al, 6
cmp al, 6
je 0x461e32
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 0x46172a
cmp ecx, 0x4e
jne 0x46172a
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 8], 0xfffffff4
jne 0x46172a
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00460240
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
jmp 0x46172a
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x461c3e
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.0045c130
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp eax, 2
jne 0x461c60
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 2
call fcn.0045d590
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp eax, 0x14
jne 0x461cc6
test byte [esi + 0x84], 2
jne 0x461cbb
test byte [esi + 0x58], 1
jne 0x461cbb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov dword [ebp - 4], 0xffffffff
mov dword [edi], 1
mov eax, 1
jmp 0x46172c
mov dword [edi], 0
jmp 0x461d4f
cmp eax, 0x116
jne 0x461d01
push 0
push 0
push 0x447
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x44]
movzx eax, ax
or eax, 0x900000
push eax
push 0x11f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi], 1
jmp 0x461d4f
cmp eax, 0x117
jne 0x461d25
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x117
call fcn.0045ebb0
jmp 0x461d47
cmp eax, 0x11f
jne 0x461d4f
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x11f
call fcn.0045f730
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
call fcn.00458d70
cmp dword [ebp + 0xc], eax
jne 0x461d75
push 0
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004554f0
mov dword [edi], 0
mov eax, 1
jmp 0x46172c
call fcn.00458e30
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x461dc1
cmp dword [ebp + 0x10], 0
je 0x461d92
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x461db3
xor ecx, ecx
lea eax, [esi + 4]
test esi, esi
cmove eax, ecx
mov dword [edi], eax
lea eax, [ecx + 1]
jmp 0x46172c
xor eax, eax
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x1a
jne 0x461de6
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x1a
call fcn.004607c0
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x120
jne 0x461e1d
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x4c], 1
push 0x120
call fcn.0045f2c0
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
jne 0x461d6b
jmp 0x46172a
cmp ecx, 8
jne 0x461e46
mov al, byte [esi + 0x85]
and al, 6
cmp al, 6
jne 0x461bd1
push 0
mov ecx, esi
call fcn.00466fb0
mov dword [edi], 1
jmp 0x46172a
cmp ecx, 0x100
jne 0x461f19
mov dl, byte [esi + 0x84]
xor ecx, ecx
test dl, 2
jne 0x461bd1
mov eax, dword [ebp + 0x10]
cmp eax, 0x20
jne 0x461e8b
mov ecx, dword [ebp - 0x50]
or ecx, 0x20000000
push ecx
push eax
push 0x104
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, 1
jmp 0x461f06
cmp eax, 0x25
je 0x461e95
cmp eax, 0x27
jne 0x461f06
movzx eax, byte [esi + 0x85]
shr eax, 5
not eax
and eax, 2
or eax, 0x25
mov dword [ebp - 0x50], eax
test dl, 1
jne 0x461f06
push 0
push 0
push 0x447
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x50]
cmp dword [ebp + 0x10], ecx
mov ecx, esi
push eax
jne 0x461ed3
call fcn.004590a0
jmp 0x461ed8
call fcn.004591e0
cmp eax, 0xfffffffe
jne 0x461f04
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00454d50
xor ecx, ecx
test al, al
mov eax, 1
cmovne ecx, eax
jmp 0x461f06
xor ecx, ecx
mov dword [edi], 0
test ecx, ecx
jne 0x461d6b
jmp 0x46172a
cmp ecx, 0x101
jne 0x461f43
test byte [esi + 0x84], 2
jne 0x461bd1
cmp dword [ebp + 0x10], 0x20
mov dword [edi], 0
je 0x461d6b
jmp 0x46172a
cmp ecx, 0x102
jne 0x46208d
test byte [esi + 0x84], 2
mov eax, 1
jne 0x461bd1
cmp dword [ebp + 0x10], 0x20
je 0x461fce
push dword [esi + 0x5c]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x461724
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jne 0x461724
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], 0
cmp eax, 0xd
je 0x461fe1
lea edx, [ebp - 0x50]
movzx eax, ax
push edx
push eax
push 0x45a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x461fe1
cmp word [ebp + 0x10], 0x2f
je 0x461fcb
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x4c]
mov dword [edi], 0
test eax, eax
jne 0x461d6b
jmp 0x46172a
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x50]
movups xmmword [ebp - 0x30], xmm0
push 0x41d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], 0
push eax
push dword [ebp - 0x50]
xorps xmm0, xmm0
push 0x417
push dword [esi + 4]
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 0x40]
test al, 4
je 0x46207b
test al, 8
jne 0x46207b
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jg 0x46207b
push 0
push 0x28
push 0x100
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp + 0x10], 0xd
je 0x461fcb
push 0
push dword [ebp - 0x50]
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x461fcb
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x461fce
cmp ecx, 0x104
je 0x461724
cmp ecx, 0x105
je 0x461724
cmp ecx, 0x106
je 0x461724
cmp ecx, 0x52e
jne 0x4620c8
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x52f
jne 0x4620f3
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x52f
call fcn.0045b7d0
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x52d
jne 0x46210a
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, 1
jmp 0x46172c
cmp ecx, 0x2b
jne 0x462140
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x4c], 1
push 0x2b
call fcn.0045da80
cmp dword [ebp - 0x4c], 0
mov dword [edi], eax
je 0x46172a
mov eax, 1
jmp 0x46172c
cmp ecx, 0x2c
jne 0x46216f
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x4c], 1
push 0x2c
call fcn.0045f240
mov dword [edi], eax
xor eax, eax
cmp dword [ebp - 0x4c], eax
setne al
jmp 0x46172c
cmp ecx, 0x37f
jne 0x46172a
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x462195
and byte [esi + 0x85], 0xef
jmp 0x4621a7
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x4621a7
or byte [esi + 0x85], 0x10
mov eax, dword [esi]
lea edx, [ebp - 0x50]
push 3
push edx
push dword [ecx + 0xc]
mov dword [ebp - 0x50], 0
push dword [ecx + 8]
push dword [ecx + 4]
push dword [ecx]
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, 1
jmp 0x46172c