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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
push edi
mov edi, dword [ebp + 0x18]
sub eax, 0
je 0x488e4c
sub eax, 1
je 0x488a3e
sub eax, 2
jne 0x488950
mov eax, dword [ebp + 0xc]
cmp eax, 0x200
jne 0x4888cd
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 0x48889a
mov ebx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
jne 0x4888a7
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_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov ebx, eax
cmp ecx, dword [0x513b20]
jne 0x4887f2
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x513b24]
je 0x4888a7
test ebx, ebx
js 0x4888a7
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jge 0x4888a7
mov eax, dword [esi + 0x88]
cmp ebx, eax
je 0x4888a7
cmp eax, 0xffffffff
je 0x4888a7
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_SendMessageW]
test byte [ebp - 0x20], 4
je 0x4888a7
or ebx, 0xffff0000
mov dword [esi + 0x8c], ebx
mov ebx, dword [esi + 0xc]
sub ebx, 1
jns 0x488861
xor ebx, ebx
jmp 0x488867
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_PostMessageW]
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 0x4888a7
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 [0x513b20], eax
mov dword [0x513b24], ecx
mov dword [edi], 0
jne 0x488fa8
jmp 0x488950
cmp eax, 0x104
jne 0x48898d
cmp ebx, 0x12
jne 0x488904
cmp byte [esi + 0x84], 0
jge 0x488909
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x488909
test cl, 8
je 0x488909
push 1
mov ecx, esi
call fcn.0048b570
jmp 0x488909
cmp ebx, 0x20
je 0x488965
test byte [esi + 0x84], 1
jne 0x488985
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 0x488985
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.00485b30
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 6
jne 0x488985
or cl, 8
mov byte [esi + 0x85], cl
mov ecx, esi
push 0
call fcn.0048b570
mov dword [esi + 0xa8], ebx
jmp 0x48894a
cmp eax, 0x105
jne 0x4889a8
mov al, byte [esi + 0x85]
test al, 8
jne 0x48894a
or al, 8
mov byte [esi + 0x85], al
jmp 0x48894a
cmp eax, 0x106
jne 0x4889e3
test byte [esi + 0x84], 1
jne 0x48894a
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
je 0x48894a
cmp ebx, 0x20
je 0x48894a
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x488a14
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x100
mov ecx, esi
call fcn.00486610
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
jmp 0x488950
cmp eax, 0x213
je 0x488e06
cmp eax, 0x102
jne 0x488950
mov dword [edi], 0
cmp ebx, 0x1b
je 0x488fa8
jmp 0x488950
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e
jne 0x488b62
cmp dword [ecx + 8], 0xfffffd37
jne 0x488af4
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
jne 0x488aee
test byte [esi + 0x58], 8
mov byte [ebp - 0x45], 0
jne 0x488a8a
lea eax, [ebp - 0x40]
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 - 0x40]
setne byte [ebp - 0x45]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x488aa2
cmp byte [ebp - 0x45], 0
jne 0x488aa2
mov ecx, dword [ebp - 0x44]
jmp 0x488aaf
mov ecx, dword [ebp - 0x44]
test byte [ecx + 0x14], 1
jne 0x488ee0
mov eax, dword [ecx + 0x14]
test al, 0x85
jne 0x488aee
test al, 0x10
je 0x488ad0
push dword [esi + 0x44]
push 0
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x44]
test byte [ecx + 0x14], 0x20
je 0x488aee
push 0
push 0xffff0000
push 0x11f
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x44]
mov dword [edi], 0
cmp dword [ecx + 8], 0xfffffd3a
jne 0x488b8e
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
je 0x488b10
mov dword [edi], 1
jmp 0x488b8e
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
call ebx
cmp eax, dword [esi + 4]
je 0x488b3d
test byte [esi + 0x58], 4
je 0x488b34
cmp dword [esi + 0xac], 0
jne 0x488b34
call ebx
mov dword [esi + 0xac], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x44]
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 0x488f9b
cmp eax, 0x117
jne 0x488b8e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x117
mov ecx, esi
call fcn.00486930
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
call fcn.00485350
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x488bf1
test ebx, ebx
je 0x488ba6
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 0x488bd7
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.004a0e13
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x112
jne 0x488ca6
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x488c22
cmp eax, 0x79
jne 0x488c19
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x488c22
cmp dword [esi + 0xa8], 0x20
jne 0x488c4e
cmp ebx, 0xf100
jne 0x488c4e
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x488c6a
mov ecx, esi
call fcn.00485b30
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 0x488fa8
jmp 0x488950
cmp dword [esi + 0xa8], 0x20
je 0x488c4e
test byte [esi + 0x84], 0x40
jne 0x488c9f
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x488c98
test cl, 8
je 0x488c98
push 1
mov ecx, esi
call fcn.0048b570
mov ecx, esi
call fcn.0048bc00
mov eax, 1
jmp 0x488c50
cmp ecx, 0x52e
jne 0x488ccb
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
je 0x48905c
cmp ecx, 0x52f
jne 0x488d0e
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x52f
mov ecx, esi
call fcn.00485e90
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x488d33
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x488d63
cmp ebx, 0x2a
je 0x488d51
cmp ebx, 0x100b
je 0x488d51
cmp ebx, 0x1023
jne 0x488e06
mov ecx, esi
call fcn.00485720
mov dword [edi], 1
jmp 0x488950
cmp ecx, 0x2b
jne 0x488d92
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x2b
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00486570
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
jmp 0x488950
cmp ecx, 0x2c
jne 0x488dc1
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x2c
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00486f80
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
jmp 0x488950
cmp ecx, 6
jne 0x488e11
mov al, byte [esi + 0x84]
neg bx
sbb bl, bl
and al, 0x7f
and bl, 0x80
or bl, al
mov byte [esi + 0x84], bl
jl 0x488df0
mov al, byte [esi + 0x85]
and al, cl
cmp al, cl
je 0x48909e
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 0x488950
cmp ecx, 0x4e
jne 0x488950
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 0xfffffff4
jne 0x488950
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00487770
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
jmp 0x488950
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x488e7d
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 1
mov ecx, esi
call fcn.00486100
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x488eab
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 2
mov ecx, esi
call fcn.00486390
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
jne 0x488f09
test byte [esi + 0x84], 2
jne 0x488efe
test byte [esi + 0x58], 1
jne 0x488efe
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 ebx
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
mov dword [edi], 0
jmp 0x488f8e
cmp eax, 0x116
jne 0x488f44
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 0x488f8e
cmp eax, 0x117
jne 0x488f66
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x117
mov ecx, esi
call fcn.00486930
jmp 0x488f86
cmp eax, 0x11f
jne 0x488f8e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x11f
mov ecx, esi
call fcn.004875d0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
call fcn.00485300
cmp dword [ebp + 0xc], eax
jne 0x488fc0
push 0
push ebx
mov ecx, esi
call fcn.004831d0
mov dword [edi], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
call fcn.00485350
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x489023
test ebx, ebx
je 0x488fd8
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 0x489009
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.004a0e13
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x489054
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x1a
mov ecx, esi
call fcn.00487990
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
jne 0x489089
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push pe_nt_image_headers32
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00487190
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x488fa8
jmp 0x488950
cmp ecx, 8
jne 0x4890b2
mov al, byte [esi + 0x85]
and al, 6
cmp al, 6
jne 0x488e06
push 0
mov ecx, esi
call fcn.0048b570
mov dword [edi], 1
jmp 0x488950
cmp ecx, 0x100
jne 0x48917d
mov dl, byte [esi + 0x84]
xor ecx, ecx
test dl, 2
jne 0x488e06
cmp ebx, 0x20
jne 0x4890f2
mov ecx, dword [ebp - 0x44]
or ecx, 0x20000000
push ecx
push ebx
push 0x104
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebx - 0x1f]
jmp 0x48916a
cmp ebx, 0x25
je 0x4890fc
cmp ebx, 0x27
jne 0x48916a
movzx eax, byte [esi + 0x85]
shr eax, 5
not eax
and eax, 2
or eax, 0x25
mov dword [ebp - 0x44], eax
test dl, 1
jne 0x48916a
push 0
push 0
push 0x447
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
push eax
cmp ebx, dword [ebp - 0x44]
jne 0x489137
call fcn.00485430
jmp 0x48913c
call fcn.00485640
cmp eax, 0xfffffffe
jne 0x489168
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00482d90
xor ecx, ecx
test al, al
mov eax, 1
cmovne ecx, eax
jmp 0x48916a
xor ecx, ecx
mov dword [edi], 0
test ecx, ecx
jne 0x488fa8
jmp 0x488950
cmp ecx, 0x101
jne 0x4891a6
test byte [esi + 0x84], 2
jne 0x488e06
mov dword [edi], 0
cmp ebx, 0x20
je 0x488fa8
jmp 0x488950
cmp ecx, 0x102
jne 0x4892ea
test byte [esi + 0x84], 2
mov eax, 1
jne 0x488e06
cmp ebx, 0x20
je 0x48922c
push dword [esi + 0x5c]
mov dword [ebp - 0x40], 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48894a
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 0x48894a
mov dword [ebp - 0x44], 0
cmp ebx, 0xd
je 0x48923f
lea eax, [ebp - 0x44]
push eax
movzx eax, bx
push eax
push 0x45a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x48923f
cmp bx, 0x2f
je 0x489229
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x40]
mov dword [edi], 0
test eax, eax
jne 0x488fa8
jmp 0x488950
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 - 0x44]
movups xmmword [ebp - 0x14], xmm0
push 0x41d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x44]
xorps xmm0, xmm0
push 0x417
push dword [esi + 4]
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 0x34]
test al, 4
je 0x4892d8
test al, 8
jne 0x4892d8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jg 0x4892d8
push 0
push 0x28
push 0x100
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp ebx, 0xd
je 0x489229
push 0
push dword [ebp - 0x44]
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x489229
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x48922c
cmp ecx, 0x104
je 0x48894a
cmp ecx, 0x105
je 0x48894a
cmp ecx, 0x106
je 0x48894a
cmp ecx, 0x52e
jne 0x489333
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52f
jne 0x48936a
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x52f
mov ecx, esi
call fcn.00485e90
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x48938f
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2b
jne 0x4893d1
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x2b
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00486570
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
je 0x488950
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2c
jne 0x48940c
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x2c
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.00486f80
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x37f
jne 0x488950
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x489432
and byte [esi + 0x85], 0xef
jmp 0x489444
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x489444
or byte [esi + 0x85], 0x10
mov eax, dword [esi]
lea edx, [ebp - 0x44]
push 3
push edx
push dword [ecx + 0xc]
mov dword [ebp - 0x44], 0
push dword [ecx + 8]
push dword [ecx + 4]
push dword [ecx]
mov ecx, esi
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.004a0e13
mov esp, ebp
pop ebp
ret 0x18