Function at 0x4b9bc0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x613ad0]
xor eax, ebp
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5be8], 0
jne 0x4b9bed
xor eax, eax
jmp 0x4ba66c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call sub.IMM32.dll_ImmIsUIMessageA
test eax, eax
jne 0x4b9c0b
xor eax, eax
jmp 0x4ba66c
cmp dword [ebp + 0xc], 0x10d
jne 0x4b9c25
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b24a0
add esp, 4
jmp 0x4ba667
cmp dword [ebp + 0xc], 0x10e
jne 0x4b9c3f
mov edx, dword [ebp + 8]
push edx
call fcn.004b87c0
add esp, 4
jmp 0x4ba667
cmp dword [ebp + 0xc], 0x10f
jne 0x4ba663
mov dword [ebp - 0x58], 0
mov eax, dword [ebp + 0x14]
and eax, 0x808
jne 0x4b9c67
mov eax, 1
jmp 0x4ba66c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5be4], 0
jne 0x4b9c7f
mov edx, dword [ebp + 8]
push edx
call fcn.004b24a0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x39c]
push ecx
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x4b48], 0
push 0
push 0
push 0x80
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0x100
mov ecx, dword [ebp - 0x30]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0x14]
and eax, 0x800
je 0x4b9f44
mov dword [ebp - 0x2cc], 0
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x30]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
add edx, 1
push edx
call fcn.004e27e0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x800
mov edx, dword [ebp - 0x30]
push edx
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x64]
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x39c]
push eax
call fcn.004f4190
mov dword [ebp - 0x60], eax
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x30]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x4b9e74
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa16c]
and eax, 0x200
je 0x4b9e74
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x2c8]
push edx
push 0x800
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, dword [ebp - 0x68]
shr ecx, 1
cmp dword [ebp - 0x60], ecx
jne 0x4b9e74
mov edx, dword [ebp - 0x60]
add edx, 1
push edx
call fcn.004e27e0
add esp, 4
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x60]
lea ecx, [eax + eax + 2]
push ecx
call fcn.004e27e0
add esp, 4
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x60]
mov word [ebp + edx*2 - 0x2c8], 0
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x2c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b7250
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5bd0]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x5be0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x5bd8]
lea ecx, [edx + eax - 1]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bd0]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x5be0]
push eax
mov edx, dword [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e3e00
add esp, 0x14
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.004e2860
add esp, 4
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.004e2860
add esp, 4
mov dword [ebp - 0x2cc], 1
cmp dword [ebp - 0x2cc], 0
jne 0x4b9ec2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5bd0]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x5be0]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x5bd8]
lea ecx, [edx + eax - 1]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bd0]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x5be0]
push eax
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e3e00
add esp, 0x14
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004e2860
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5be0]
add eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5be0], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bdc]
add eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5bdc], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x5bd8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x5bd4], 0
mov ecx, 1
test ecx, ecx
je 0x4b9f44
mov edx, dword [ebp + 8]
push edx
call fcn.004b87c0
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x39c]
push edx
call sub.IMM32.dll_ImmReleaseContext
mov eax, 1
jmp 0x4ba66c
push 0
push 0
push 8
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
call fcn.004e27e0
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 8
mov ecx, dword [ebp - 0x30]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x3c]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x39c]
push edx
call fcn.004f4190
mov dword [ebp - 0x28], eax
push 0
push 0
push 8
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x4b9fd2
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x2c8]
push edx
push 8
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x2c]
mov dl, byte [ecx]
mov byte [ebp - 9], dl
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x39c]
push eax
call fcn.004f4190
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 9]
mov byte [ecx], dl
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x38]
mov cl, byte [eax]
mov byte [ebp - 9], cl
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x38]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x39c]
push edx
call fcn.004f4190
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x38]
mov cl, byte [ebp - 9]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 0x47c
push edx
mov eax, dword [ebp + 8]
add eax, 0x5d8
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5bd0]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x5be0]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f88e0
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x47c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 0x5bd4]
jle 0x4ba177
mov eax, dword [ebp + 8]
add eax, 0x47c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x5d8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bd0]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x5be0]
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x5bd8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004f88e0
add esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
jmp 0x4ba0e0
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jge 0x4ba155
mov byte [ebp - 0x4d], 0
mov al, byte [ebp - 0x4d]
mov byte [ebp - 0x41], al
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 0x4d], dl
mov al, byte [ebp - 0x4d]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4ba125
mov cl, byte [ebp - 0x4d]
mov byte [ebp - 0x41], cl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x4d], cl
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x5bd8]
jl 0x4ba14a
mov cl, byte [ebp - 0x41]
push ecx
mov dl, byte [ebp - 0x4d]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f05d0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x4ba0d7
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x5bd4], eax
cmp dword [ebp - 0x48], 0
jne 0x4ba175
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b88b0
add esp, 8
jmp 0x4ba1f4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edx + 0x5bd4]
jge 0x4ba1f4
mov ecx, dword [ebp + 8]
add ecx, 0x47c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x5d8
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5bd0]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x5be0]
add ecx, dword [ebp - 0x28]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004f88e0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
jmp 0x4ba1cc
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x5bd8]
jge 0x4ba1e8
mov edx, dword [ebp + 8]
push edx
call fcn.004f3bb0
add esp, 4
jmp 0x4ba1c3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x5bd4], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x3c]
jge 0x4ba49e
mov eax, dword [ebp + 8]
add eax, 0x47c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x5d8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bd0]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x5be0]
add eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004f88e0
add esp, 0x10
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x4ba246
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jge 0x4ba485
mov word [ebp - 0x18], 0
mov byte [ebp - 0x4d], 0
mov al, byte [ebp - 0x4d]
mov byte [ebp - 0x41], al
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 0x4d], dl
mov al, byte [ebp - 0x4d]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4ba295
mov cl, byte [ebp - 0x4d]
mov byte [ebp - 0x41], cl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x4d], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa16c]
and eax, 0x200
je 0x4ba354
movzx ecx, byte [ebp - 0x41]
test ecx, ecx
je 0x4ba31c
mov dl, byte [ebp - 0x41]
mov byte [ebp - 0x2dc], dl
mov al, byte [ebp - 0x4d]
mov byte [ebp - 0x2db], al
mov byte [ebp - 0x2da], 0
push 1
lea ecx, [ebp - 0x2e0]
push ecx
push 2
lea edx, [ebp - 0x2dc]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 1
jne 0x4ba31a
lea eax, [ebp - 0x4d]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dx, word [ebp - 0x2e0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0090
add esp, 0x10
mov byte [ebp - 0x41], 0
jmp 0x4ba354
cmp dword [ebp - 0x58], 0
je 0x4ba354
mov ecx, dword [ebp - 0x14]
mov dx, word [ebp + ecx*2 - 0x2c8]
mov word [ebp - 0x2e4], dx
lea eax, [ebp - 0x4d]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dx, word [ebp - 0x2e4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0090
add esp, 0x10
mov byte [ebp - 0x41], 0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5d8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ad040
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x47c]
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x4d]
mov byte [edx + ecx], al
cmp dword [ebp - 0x4c], 0
je 0x4ba39c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x47c]
mov eax, dword [ebp - 0x4c]
mov cl, byte [ebp - 0x41]
mov byte [eax + edx], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad090
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad140
add esp, 8
mov dword [ebp - 0x40], eax
mov dx, word [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x47c]
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + ecx*2]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ab7a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x47c]
mov edx, dword [ebp - 0x40]
mov word [edx + ecx*2], ax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x47c]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x47c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5d8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x47c]
cmp eax, dword [ecx + 0xc]
jl 0x4ba480
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x47c], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d8]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5d8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x5d8]
cmp ecx, dword [eax + 0x5e4]
jl 0x4ba480
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5d8]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5d8], eax
jmp 0x4ba23d
mov edx, dword [ebp + 8]
mov dword [edx + 0x498], 2
mov eax, dword [ebp + 8]
push eax
call fcn.004de3e0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x47c]
sub edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x10]
je 0x4ba4fd
mov eax, dword [ebp + 8]
add eax, 0x47c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x5d8
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5bd0]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x5be0]
add eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004f88e0
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x498], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004de3e0
add esp, 4
push 0
push 0
push 0x10
mov edx, dword [ebp - 0x30]
push edx
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
add eax, 1
push eax
call fcn.004e27e0
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x10
mov eax, dword [ebp - 0x30]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x14], 0
jmp 0x4ba54d
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
jge 0x4ba630
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x68]
jge 0x4ba630
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
and edx, 3
je 0x4ba58d
cmp dword [ebp - 0x54], 0xffffffff
jne 0x4ba587
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], ecx
jmp 0x4ba58d
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], edx
xor eax, eax
je 0x4ba62b
mov ecx, dword [ebp + 8]
add ecx, 0x4b4c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4b3c
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5bd0]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x5be0]
add ecx, dword [ebp - 0x54]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004f88e0
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x4b50
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4b40
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5bd0]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x5be0]
mov eax, dword [ebp - 0x5c]
lea ecx, [ecx + eax + 1]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f88e0
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x4b5c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4b48], 2
mov edx, dword [ebp + 8]
push edx
call fcn.004de3e0
add esp, 4
jmp 0x4ba544
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x5bd8], ecx
cmp dword [ebp - 0x20], 0
je 0x4ba64e
mov edx, dword [ebp - 0x20]
push edx
call fcn.004e2860
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x39c]
push edx
call sub.IMM32.dll_ImmReleaseContext
jmp 0x4ba667
xor eax, eax
jmp 0x4ba66c
mov eax, 1
mov ecx, dword [ebp - 0x6c]
xor ecx, ebp
call fcn.005aac48
mov esp, ebp
pop ebp
ret