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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x517ba0]
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 0x48bcec
sub eax, 1
je 0x48b8de
sub eax, 2
jne 0x48b7f0
mov eax, dword [ebp + 0xc]
cmp eax, 0x200
jne 0x48b76d
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 0x48b73a
mov ebx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
jne 0x48b747
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 [0x517b28]
jne 0x48b692
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x517b2c]
je 0x48b747
test ebx, ebx
js 0x48b747
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jge 0x48b747
mov eax, dword [esi + 0x88]
cmp ebx, eax
je 0x48b747
cmp eax, 0xffffffff
je 0x48b747
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 0x48b747
or ebx, 0xffff0000
mov dword [esi + 0x8c], ebx
mov ebx, dword [esi + 0xc]
sub ebx, 1
jns 0x48b701
xor ebx, ebx
jmp 0x48b707
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 0x48b747
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 [0x517b28], eax
mov dword [0x517b2c], ecx
mov dword [edi], 0
jne 0x48be48
jmp 0x48b7f0
cmp eax, 0x104
jne 0x48b82d
cmp ebx, 0x12
jne 0x48b7a4
cmp byte [esi + 0x84], 0
jge 0x48b7a9
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x48b7a9
test cl, 8
je 0x48b7a9
push 1
mov ecx, esi
call fcn.0048e420
jmp 0x48b7a9
cmp ebx, 0x20
je 0x48b805
test byte [esi + 0x84], 1
jne 0x48b825
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 0x48b825
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.004889c0
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 6
jne 0x48b825
or cl, 8
mov byte [esi + 0x85], cl
mov ecx, esi
push 0
call fcn.0048e420
mov dword [esi + 0xa8], ebx
jmp 0x48b7ea
cmp eax, 0x105
jne 0x48b848
mov al, byte [esi + 0x85]
test al, 8
jne 0x48b7ea
or al, 8
mov byte [esi + 0x85], al
jmp 0x48b7ea
cmp eax, 0x106
jne 0x48b883
test byte [esi + 0x84], 1
jne 0x48b7ea
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
je 0x48b7ea
cmp ebx, 0x20
je 0x48b7ea
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x48b8b4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x100
mov ecx, esi
call fcn.004894a0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
jmp 0x48b7f0
cmp eax, 0x213
je 0x48bca6
cmp eax, 0x102
jne 0x48b7f0
mov dword [edi], 0
cmp ebx, 0x1b
je 0x48be48
jmp 0x48b7f0
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e
jne 0x48ba02
cmp dword [ecx + 8], 0xfffffd37
jne 0x48b994
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
jne 0x48b98e
test byte [esi + 0x58], 8
mov byte [ebp - 0x45], 0
jne 0x48b92a
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 0x48b942
cmp byte [ebp - 0x45], 0
jne 0x48b942
mov ecx, dword [ebp - 0x44]
jmp 0x48b94f
mov ecx, dword [ebp - 0x44]
test byte [ecx + 0x14], 1
jne 0x48bd80
mov eax, dword [ecx + 0x14]
test al, 0x85
jne 0x48b98e
test al, 0x10
je 0x48b970
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 0x48b98e
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 0x48ba2e
mov eax, dword [ecx]
cmp eax, dword [esi + 4]
je 0x48b9b0
mov dword [edi], 1
jmp 0x48ba2e
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
call ebx
cmp eax, dword [esi + 4]
je 0x48b9dd
test byte [esi + 0x58], 4
je 0x48b9d4
cmp dword [esi + 0xac], 0
jne 0x48b9d4
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 0x48be3b
cmp eax, 0x117
jne 0x48ba2e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x117
mov ecx, esi
call fcn.004897c0
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
call fcn.004881e0
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x48ba91
test ebx, ebx
je 0x48ba46
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 0x48ba77
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.004a4433
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x112
jne 0x48bb46
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x48bac2
cmp eax, 0x79
jne 0x48bab9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x48bac2
cmp dword [esi + 0xa8], 0x20
jne 0x48baee
cmp ebx, 0xf100
jne 0x48baee
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x48bb0a
mov ecx, esi
call fcn.004889c0
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 0x48be48
jmp 0x48b7f0
cmp dword [esi + 0xa8], 0x20
je 0x48baee
test byte [esi + 0x84], 0x40
jne 0x48bb3f
mov cl, byte [esi + 0x85]
mov al, cl
and al, 6
cmp al, 2
jne 0x48bb38
test cl, 8
je 0x48bb38
push 1
mov ecx, esi
call fcn.0048e420
mov ecx, esi
call fcn.0048ec60
mov eax, 1
jmp 0x48baf0
cmp ecx, 0x52e
jne 0x48bb6b
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
je 0x48befc
cmp ecx, 0x52f
jne 0x48bbae
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x52f
mov ecx, esi
call fcn.00488d20
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x48bbd3
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x48bc03
cmp ebx, 0x2a
je 0x48bbf1
cmp ebx, 0x100b
je 0x48bbf1
cmp ebx, 0x1023
jne 0x48bca6
mov ecx, esi
call fcn.004885b0
mov dword [edi], 1
jmp 0x48b7f0
cmp ecx, 0x2b
jne 0x48bc32
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.00489400
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
jmp 0x48b7f0
cmp ecx, 0x2c
jne 0x48bc61
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.00489e10
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
jmp 0x48b7f0
cmp ecx, 6
jne 0x48bcb1
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 0x48bc90
mov al, byte [esi + 0x85]
and al, cl
cmp al, cl
je 0x48bf3e
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 0x48b7f0
cmp ecx, 0x4e
jne 0x48b7f0
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 0xfffffff4
jne 0x48b7f0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
mov ecx, esi
call fcn.0048a600
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
jmp 0x48b7f0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x48bd1d
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 1
mov ecx, esi
call fcn.00488f90
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x48bd4b
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 2
mov ecx, esi
call fcn.00489220
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
jne 0x48bda9
test byte [esi + 0x84], 2
jne 0x48bd9e
test byte [esi + 0x58], 1
jne 0x48bd9e
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
mov dword [edi], 0
jmp 0x48be2e
cmp eax, 0x116
jne 0x48bde4
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 0x48be2e
cmp eax, 0x117
jne 0x48be06
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x117
mov ecx, esi
call fcn.004897c0
jmp 0x48be26
cmp eax, 0x11f
jne 0x48be2e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push ecx
push ebx
push 0x11f
mov ecx, esi
call fcn.0048a460
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
call fcn.00488190
cmp dword [ebp + 0xc], eax
jne 0x48be60
push 0
push ebx
mov ecx, esi
call fcn.00485ff0
mov dword [edi], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
call fcn.004881e0
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x48bec3
test ebx, ebx
je 0x48be78
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 0x48bea9
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.004a4433
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x1a
jne 0x48bef4
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x1a
mov ecx, esi
call fcn.0048a820
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x120
jne 0x48bf29
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x120
mov ecx, esi
mov dword [ebp - 0x40], 1
call fcn.0048a020
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
jne 0x48be48
jmp 0x48b7f0
cmp ecx, 8
jne 0x48bf52
mov al, byte [esi + 0x85]
and al, 6
cmp al, 6
jne 0x48bca6
push 0
mov ecx, esi
call fcn.0048e420
mov dword [edi], 1
jmp 0x48b7f0
cmp ecx, 0x100
jne 0x48c01d
mov dl, byte [esi + 0x84]
xor ecx, ecx
test dl, 2
jne 0x48bca6
cmp ebx, 0x20
jne 0x48bf92
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 0x48c00a
cmp ebx, 0x25
je 0x48bf9c
cmp ebx, 0x27
jne 0x48c00a
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 0x48c00a
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 0x48bfd7
call fcn.004882c0
jmp 0x48bfdc
call fcn.004884d0
cmp eax, 0xfffffffe
jne 0x48c008
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00485bb0
xor ecx, ecx
test al, al
mov eax, 1
cmovne ecx, eax
jmp 0x48c00a
xor ecx, ecx
mov dword [edi], 0
test ecx, ecx
jne 0x48be48
jmp 0x48b7f0
cmp ecx, 0x101
jne 0x48c046
test byte [esi + 0x84], 2
jne 0x48bca6
mov dword [edi], 0
cmp ebx, 0x20
je 0x48be48
jmp 0x48b7f0
cmp ecx, 0x102
jne 0x48c18a
test byte [esi + 0x84], 2
mov eax, 1
jne 0x48bca6
cmp ebx, 0x20
je 0x48c0cc
push dword [esi + 0x5c]
mov dword [ebp - 0x40], 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48b7ea
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 0x48b7ea
mov dword [ebp - 0x44], 0
cmp ebx, 0xd
je 0x48c0df
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 0x48c0df
cmp bx, 0x2f
je 0x48c0c9
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x40]
mov dword [edi], 0
test eax, eax
jne 0x48be48
jmp 0x48b7f0
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 0x48c178
test al, 8
jne 0x48c178
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jg 0x48c178
push 0
push 0x28
push 0x100
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp ebx, 0xd
je 0x48c0c9
push 0
push dword [ebp - 0x44]
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48c0c9
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x48c0cc
cmp ecx, 0x104
je 0x48b7ea
cmp ecx, 0x105
je 0x48b7ea
cmp ecx, 0x106
je 0x48b7ea
cmp ecx, 0x52e
jne 0x48c1d3
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52f
jne 0x48c20a
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x52f
mov ecx, esi
call fcn.00488d20
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x52d
jne 0x48c22f
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2b
jne 0x48c271
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.00489400
cmp dword [ebp - 0x40], 0
mov dword [edi], eax
je 0x48b7f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x2c
jne 0x48c2ac
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.00489e10
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.004a4433
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x37f
jne 0x48b7f0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
lea eax, [edx - 0x200]
cmp eax, 0xe
ja 0x48c2d2
and byte [esi + 0x85], 0xef
jmp 0x48c2e4
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x48c2e4
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.004a4433
mov esp, ebp
pop ebp
ret 0x18