Function at 0x4330f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8538
call fcn.00499390
mov eax, dword [0x4c8410]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x43313f
cmp dword [0x4ca610], 1
mov edx, dword [ebp + 8]
sete al
test al, al
sete al
movzx ecx, al
push ecx
push edx
mov dword [0x4ca610], ebx
call fcn.0042df90
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c8474]
mov edi, dword [0x4c846c]
mov esi, dword [0x4c8470]
mov dword [ebp - 0x30], eax
mov dword [0x4ca610], ebx
mov dword [0x4ca63c], 1
mov word [0x4ca640], bx
mov dword [0x4ca64c], 0x3fff
movzx eax, word [edi]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 6], bl
cmp ax, bx
je 0x433254
lea ebx, [edi + 2]
lea esp, [esp]
movzx esi, ax
test esi, 0xffffff80
jne 0x4331ad
push 2
push esi
call fcn.0048edee
add esp, 8
test eax, eax
je 0x4331ad
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x4331c3.43
movzx ecx, byte [eax + 0x4340c8]
jmp dword [ecx*4 + 0x4340a0]
mov byte [0x4ca63c], 0
jmp case.0x4331c3.43
mov byte [0x4ca63d], 1
jmp case.0x4331c3.43
mov byte [0x4ca63e], 1
jmp case.0x4331c3.43
mov byte [0x4ca63f], 1
jmp case.0x4331c3.43
push ebx
call fcn.0048ee36
add esp, 4
mov dword [0x4ca64c], eax
cmp eax, 0x3fff
jle case.0x4331c3.43
mov dword [0x4ca64c], 0x3fff
jmp case.0x4331c3.43
mov esi, ebx
call fcn.00413180
fmul qword [0x4be5d0]
call fcn.0049c4c0
mov dword [ebp - 0x28], eax
jmp case.0x4331c3.43
mov byte [0x4ca640], 1
jmp case.0x4331c3.43
mov byte [0x4ca641], 1
jmp case.0x4331c3.43
mov byte [ebp - 6], 1
movzx eax, word [edi + 2]
add edi, 2
add ebx, 2
test ax, ax
jne 0x433190
mov esi, dword [ebp - 0x20]
xor ebx, ebx
push 0xff
lea edx, [ebp - 0x333]
push ebx
push edx
mov byte [ebp - 0x334], 0
call fcn.00496a70
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x533]
push ebx
push eax
mov byte [ebp - 0x534], 0
call fcn.00496a70
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x1a], cx
mov dword [ebp - 0xc], ebx
mov eax, esi
mov dword [ebp - 0x14], esi
cmp word [esi], bx
je 0x433463
xor edx, edx
mov word [ebp - 0x1c], dx
movzx ecx, word [eax]
mov eax, ecx
sub eax, 0x7b
je 0x43337f
sub eax, 2
je 0x433450
cmp byte [ebp - 6], dl
je 0x4332cd
inc dword [ebp - 0xc]
jmp 0x433450
push 0
mov word [ebp - 0x1c], cx
mov byte [ebp - 5], dl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cx, word [ebp - 0x1c]
test cx, cx
je 0x433450
cmp word [ebp - 0x1a], 0
jne 0x433304
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 5]
call fcn.00412410
mov bl, al
jmp 0x433417
movzx esi, cx
test esi, 0xffffff80
jne 0x433321
push 2
push esi
call fcn.0048edee
add esp, 8
test eax, eax
je 0x433321
and esi, 0xffffffdf
cmp si, 0x56
jne 0x43334c
mov eax, dword [ebp - 0x1a]
call fcn.00409630
cmp ax, 0x4b
jne 0x43334c
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0048f1cb
add esp, 0xc
mov bl, al
jmp 0x433417
xor esi, esi
mov edi, edi
mov edx, dword [esi*8 + 0x4c56f8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x433373
inc esi
cmp esi, 0x6d
jl 0x433350
jmp 0x433450
mov bl, byte [esi*8 + 0x4c56fc]
jmp 0x433417
mov ebx, dword [ebp - 0x14]
lea edi, [ebx + 2]
push 0x7d
push edi
call fcn.0048e971
mov esi, eax
add esp, 8
test esi, esi
je 0x433450
sub eax, ebx
sar eax, 1
dec eax
jne 0x4333b1
cmp word [esi + 2], 0x7d
jne 0x433450
add esi, 2
jmp 0x4333b6
cmp eax, 1
jne 0x4333cb
cmp byte [ebp - 6], 0
je 0x4333c4
inc dword [ebp - 0xc]
jmp 0x433450
mov ax, word [edi]
mov word [ebp - 0x1c], ax
xor ecx, ecx
push ecx
mov word [esi], cx
mov byte [ebp - 5], cl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 1
lea edx, [ebp - 5]
mov eax, edi
call fcn.00412350
mov bl, al
add esp, 8
test bl, bl
jne 0x43340c
mov eax, edi
call fcn.004122b0
movzx eax, ax
test ax, ax
je 0x43340c
mov edx, eax
mov byte [ebp + edx - 0x534], 1
mov eax, 0x7d
mov word [esi], ax
mov dword [ebp - 0x14], esi
test bl, bl
je 0x433450
movzx esi, bl
or byte [ebp + esi - 0x334], 1
cmp word [ebp - 0x1c], 0
lea esi, [ebp + esi - 0x334]
je 0x433450
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x433450
test byte [ebp - 5], 0x30
je 0x43344d
or byte [esi], 2
jmp 0x433450
or byte [esi], 4
mov eax, dword [ebp - 0x14]
add eax, 2
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x4332a3
mov eax, dword [ebp - 0xc]
mov dword [0x4ca61c], 0x4ac0f0
test eax, eax
je 0x4334e7
lea eax, [eax + eax + 2]
call fcn.00495170
mov esi, dword [ebp - 0x20]
mov eax, esp
mov dword [0x4ca61c], eax
cmp word [esi], 0
mov ebx, eax
je 0x4334e2
nop
movzx ecx, word [esi]
mov eax, ecx
sub eax, 0x7b
je 0x4334a7
sub eax, 2
je 0x4334d9
mov word [ebx], cx
add ebx, 2
jmp 0x4334d9
lea edi, [esi + 2]
push 0x7d
push edi
call fcn.0048e971
add esp, 8
test eax, eax
je 0x4334d9
cmp eax, edi
jne 0x4334c7
cmp word [eax + 2], 0x7d
jne 0x4334c7
add eax, 2
add esi, 4
cmp eax, esi
jne 0x4334d7
mov dx, word [edi]
mov word [ebx], dx
add ebx, 2
mov esi, eax
add esi, 2
cmp word [esi], 0
jne 0x433490
xor eax, eax
mov word [ebx], ax
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4ca62c], edi
cmp word [ecx], di
je 0x433721
cmp dword [0x4ca628], edi
jne 0x43352a
push 0x1000
call fcn.0048dc24
add esp, 4
mov dword [0x4ca628], eax
cmp eax, edi
je 0x433610
mov dword [0x4ca630], 0x400
cmp byte [esi + 1], 3
ja 0x433537
xor eax, eax
jmp 0x4335bf
mov eax, dword [0x4c841c]
cmp eax, edi
je 0x4335a0
mov dl, byte [eax + 0x17]
test dl, dl
jne 0x43354f
mov ecx, dword [eax + 0xc]
mov cl, byte [ecx + 0x17]
jmp 0x433551
mov cl, dl
cmp cl, 1
jne 0x4335a0
movzx ecx, byte [esi]
lea ebx, [ecx*8]
sub ebx, ecx
test byte [ebx*2 + 0x4c49d6], 0x80
jne 0x4335a0
cmp dword [0x4c862c], edi
jne 0x433591
test dl, dl
jne 0x43357d
mov ecx, dword [eax + 0xc]
jmp 0x43357f
mov ecx, eax
test byte [ecx + 0x15], 0xa
jne 0x433591
xor edx, edx
cmp dword [ecx + 0xc], edi
setne dl
cmp edx, edi
je 0x4335a0
cmp eax, dword [0x4c8cc4]
je 0x4335a0
call fcn.004136d0
jmp 0x4335bf
mov eax, dword [0x4c8474]
lea edx, [eax + 2]
jmp 0x4335b0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4335b0
sub eax, edx
sar eax, 1
inc eax
cmp eax, dword [0x4ca638]
jbe 0x433631
mov dword [0x4ca638], eax
cmp eax, 0x1000
ja 0x4335de
mov dword [0x4ca638], 0x1000
mov eax, dword [0x4ca634]
cmp eax, edi
je 0x4335f0
push eax
call fcn.0048f1ff
add esp, 4
mov eax, dword [0x4ca638]
lea ecx, [eax + eax]
push ecx
call fcn.0048dc24
add esp, 4
mov dword [0x4ca634], eax
cmp eax, edi
jne 0x433636
mov dword [0x4ca638], edi
push 0x4ac0f0
push edi
push str.Out_of_memory.
mov ecx, esi
call fcn.0042e160
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4ca634]
mov edx, dword [0x4ca628]
mov ecx, dword [0x4ca62c]
mov edi, dword [ebp - 0x30]
mov dword [edx + ecx*4], eax
cmp word [edi], 0
mov esi, dword [0x4ca634]
je 0x433701
mov ebx, 0x2c
lea ecx, [ecx]
movzx eax, word [edi]
cmp ax, bx
je 0x433673
mov word [esi], ax
add esi, 2
jmp 0x4336f4
cmp word [edi + 2], bx
jne 0x433686
mov edx, ebx
mov word [esi], dx
add esi, 2
add edi, 2
jmp 0x4336f4
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x4ca628]
mov eax, dword [0x4ca62c]
mov edx, dword [ecx + eax*4]
cmp word [edx], 0
je 0x4336bb
inc eax
mov dword [0x4ca62c], eax
add esi, 2
mov dword [ecx + eax*4], esi
xor eax, eax
mov word [esi], ax
mov eax, dword [0x4ca62c]
mov ecx, dword [0x4ca628]
cmp word [edi + 2], 0
je 0x4336f4
mov edx, dword [0x4ca630]
cmp eax, edx
jb 0x4336f4
lea edx, [edx*4 + 0x1000]
push edx
push ecx
call fcn.0048ee57
add esp, 8
test eax, eax
je 0x43384c
add dword [0x4ca630], 0x400
mov dword [0x4ca628], eax
add edi, 2
cmp word [edi], 0
jne 0x433660
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x4ca628]
mov edx, dword [0x4ca62c]
mov eax, dword [ecx + edx*4]
cmp word [eax], 0
je 0x433721
inc dword [0x4ca62c]
cmp byte [0x4c861d], 0
je 0x43375f
mov ecx, dword [0x4c84c8]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x433744
mov byte [0x4c861d], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x43375f
push 1
push 0xffffffffffffffff
call fcn.00401360
add esp, 8
xor edx, edx
push 0x7ffe
push edx
lea eax, [ebp - 0x8532]
push eax
mov word [ebp - 0x8534], dx
call fcn.00496a70
or byte [0x4c8ed6], 1
add esp, 0xc
cmp dword [0x4c85f8], 0
lea ecx, [ebp - 0x8534]
lea edx, [ebp - 0x334]
lea eax, [ebp - 0x534]
mov dword [0x4ca644], ecx
mov dword [0x4ca648], 0
mov dword [0x4ca614], edx
mov dword [0x4ca618], eax
mov dword [0x4ca610], 1
mov byte [0x4c8618], 1
jne 0x4337dd
mov ecx, dword [0x4c5acc]
movzx edx, word [ecx]
push edx
call fcn.004080c0
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x433820
cmp byte [0x4c861d], 0
jne 0x433820
cmp eax, 0xa
jge 0x4337f7
mov eax, 0xa
push 0x4038c0
push eax
mov eax, dword [0x4c84c8]
push 0xc
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne cl
mov byte [0x4c861d], cl
jmp 0x433820
push 1
push 0x8000012f
call fcn.00401360
mov eax, dword [0x4ca610]
add esp, 8
cmp eax, 1
je 0x433820
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x433845
jmp dword [eax*4 + 0x4340f8]
mov ecx, dword [ebp + 8]
push 0x4ac0f0
push 0
push str.Out_of_memory.
call fcn.0042e160
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push str.Timeout
push edx
call fcn.004774d0
jmp 0x433bec
mov eax, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push str.Match
push eax
call fcn.004774d0
jmp 0x433bec
mov edx, dword [0x4aab44]
mov ecx, dword [str.EndKey:]
mov eax, dword [0x4aab48]
push 0xf0
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ecx
mov ecx, dword [0x4aab4c]
lea edx, [ebp - 0x124]
push 0
push edx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ecx
call fcn.00496a70
mov ax, word [0x4ca624]
add esp, 0xc
test ax, ax
je 0x43390b
mov word [ebp - 0x126], ax
xor eax, eax
mov word [ebp - 0x124], ax
jmp 0x433a45
cmp byte [0x4ca627], 0
je 0x4339aa
push 0xff
lea ecx, [ebp - 0x233]
push 0
push ecx
mov byte [ebp - 0x234], 0
call fcn.00496a70
or byte [ebp - 0x224], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x433951
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x433953
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
cmp dword [0x4c8658], edx
push eax
setne dl
lea eax, [ebp - 0x126]
lea ecx, [ebp - 0x234]
xor bl, bl
push edx
movzx edx, byte [0x4ca620]
push 2
push eax
push ecx
push edx
call fcn.004127b0
movzx ecx, byte [0x4ca620]
movzx eax, ax
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor edx, edx
mov word [ebp + eax*2 - 0x126], dx
jmp 0x433a45
cmp byte [0x4ca626], 0
je 0x433a0f
mov cx, word [0x4ca622]
xor eax, eax
lea esp, [esp]
cmp word [eax*8 + 0x4c5a64], cx
je 0x4339ee
inc eax
cmp eax, 0xd
jl 0x4339c0
movzx eax, cx
push eax
push str.sc_03X
mov esi, 0x79
lea edi, [ebp - 0x126]
call fcn.00474720
add esp, 8
jmp 0x433a2a
mov eax, dword [eax*8 + 0x4c5a60]
push 0x78
push eax
lea ecx, [ebp - 0x126]
push ecx
call fcn.00490894
add esp, 0xc
xor edx, edx
mov word [ebp - 0x36], dx
jmp 0x433a2a
mov bl, byte [0x4ca620]
push 1
mov eax, 0x79
lea ecx, [ebp - 0x126]
call fcn.00412110
add esp, 4
mov ecx, dword [ebp - 0x126]
add ecx, 0xffffff9f
cmp cx, 0x19
ja 0x433a45
mov edx, 0xffe0
add word [ebp - 0x126], dx
mov ecx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x134]
push eax
push ecx
call fcn.004774d0
jmp 0x433bec
mov edx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push 0x4aab50
push edx
call fcn.004774d0
jmp 0x433bec
mov ecx, dword [0x4c8cc4]
mov al, byte [ecx + 0x17]
mov dword [ebp - 0xc], ecx
test al, al
jne 0x433aa8
mov eax, dword [ecx + 0xc]
push 1
push 0
push 0xffffffffffffffff
push str.NewInput
push eax
call fcn.004774d0
jmp 0x433bec
cmp dword [ecx + 8], str.NewInput
lea edx, [ecx + 8]
mov dword [ebp - 0x14], edx
jne 0x433abe
mov edx, dword [ecx + 0xc]
shr edx, 1
jmp 0x433ac3
mov edx, 8
lea esi, [edx + 1]
mov dword [ebp - 0x20], edx
lea ebx, [esi + esi]
cmp al, 2
jne 0x433b2f
cmp dword [0x4ca600], 0
mov ebx, edx
jne 0x433bec
cmp edx, 0xffffffff
jne 0x433aeb
mov ebx, 8
jmp 0x433aef
test edx, edx
je 0x433b20
lea edi, [ebx + 1]
mov esi, 0x4ca5f4
call fcn.00404280
test eax, eax
je 0x433bec
mov eax, dword [0x4ca600]
push ebx
push str.NewInput
push eax
mov esi, eax
call fcn.00490894
add esp, 0xc
xor ecx, ecx
mov word [esi + ebx*2], cx
mov ecx, 0x4ca5f4
call fcn.00404300
jmp 0x433bec
cmp ebx, dword [0x4c48bc]
jbe 0x433b55
cmp ebx, dword [ecx + 0x10]
jbe 0x433b55
push 0x4ac0f0
push 0x4bcac8
mov ecx, 0x4ca650
call fcn.0042e420
jmp 0x433bec
cmp esi, 2
jae 0x433b68
push 4
xor al, al
call fcn.00477a80
jmp 0x433bec
mov al, byte [ecx + 0x15]
lea edi, [ecx + 0x15]
test al, 2
je 0x433b80
mov ecx, dword [ecx]
and al, 0x3d
mov byte [edi], al
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov esi, dword [ebp - 0xc]
mov edx, dword [esi + 0x10]
and byte [edi], 0x82
mov dword [ebp + 8], edx
cmp ebx, edx
jbe 0x433bbb
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x433c66
cmp cl, 2
je 0x433ca3
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
and byte [edi], 0x7f
mov dword [edx + 0x10], esi
mov dword [ecx], eax
mov esi, edx
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
cmp eax, str.NewInput
je 0x433bdc
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + ecx]
push edx
push str.NewInput
push eax
call fcn.0048e610
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi]
add eax, eax
xor edx, edx
mov word [eax + ecx], dx
mov dword [esi + 0xc], eax
cmp byte [0x4c861d], 0
mov edi, dword [ebp - 0x10]
mov dword [0x4ca610], 0
je 0x433c36
mov eax, dword [0x4c84c8]
push 0xc
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x433c1b
mov byte [0x4c861d], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x433c36
push 1
push 0xffffffffffffffff
call fcn.00401360
add esp, 8
mov dl, byte [edi + 0x17]
test dl, dl
jne 0x433db8
mov edx, dword [edi + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x8534]
push ecx
push edx
call fcn.004774d0
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x80
ja 0x433ca3
cmp ebx, 8
ja 0x433c7a
mov esi, 8
jmp 0x433c88
mov ecx, 0x10
cmp ecx, ebx
sbb esi, esi
and esi, 0x70
add esi, ecx
mov eax, esi
call fcn.00471b50
test eax, eax
je 0x433bec
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], 1
jmp 0x433bab
cmp ebx, 0x20
jae 0x433cb2
mov esi, 0x20
jmp 0x433d2d
cmp ebx, 0x208
jae 0x433cc1
mov esi, 0x208
jmp 0x433d2d
cmp ebx, 0x50000
jae 0x433cfc
mov dword [ebp + 8], ebx
fild dword [ebp + 8]
test ebx, ebx
jns 0x433cd9
fadd qword [0x4be5a8]
fmul qword [0x4be5e0]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x28], eax
fldcw word [ebp - 0x28]
fistp qword [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
fldcw word [ebp + 0xa]
jmp 0x433d2d
cmp ebx, 0x320000
jae 0x433d0c
lea esi, [ebx + 0x8000]
jmp 0x433d2d
cmp ebx, 0xc80000
jae 0x433d27
mov eax, 0x51eb851f
mul ebx
mov esi, edx
mov edx, dword [ebp + 8]
shr esi, 5
add esi, ebx
jmp 0x433d2d
lea esi, [ebx + 0x20000]
mov eax, dword [0x4c48bc]
cmp esi, eax
jbe 0x433d38
mov esi, eax
cmp cl, 2
jne 0x433d6e
test edx, edx
je 0x433d6e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov bl, 1
call fcn.0048f1ff
add esp, 4
test esi, esi
js 0x433d72
push esi
call fcn.0048dc24
add esp, 4
test eax, eax
je 0x433d72
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], 2
jmp 0x433bab
xor bl, bl
jmp 0x433d51
test bl, bl
je 0x433d8b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [ecx], 0x4ca5c8
jmp 0x433d95
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0xc]
push 0x4ac0f0
push str.Out_of_memory.
mov ecx, 0x4ca650
mov dword [edx + 0xc], 0
call fcn.0042e420
jmp 0x433bec
lea eax, [ebp - 0x8534]
cmp dword [edi + 8], eax
jne 0x433dcd
mov esi, dword [edi + 0xc]
shr esi, 1
mov dword [ebp - 0x28], esi
jmp 0x433dea
lea eax, [ebp - 0x8534]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433dd6
sub eax, esi
sar eax, 1
mov esi, eax
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
lea ebx, [eax + eax]
cmp dl, 2
jne 0x433e77
cmp dword [0x4ca600], 0
mov ebx, esi
jne 0x433f77
cmp esi, 0xffffffff
jne 0x433e27
lea eax, [ebp - 0x8534]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433e16
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
je 0x433e5e
lea edi, [ebx + 1]
mov esi, 0x4ca5f4
call fcn.00404280
test eax, eax
je 0x433f77
mov eax, dword [0x4ca600]
push ebx
lea ecx, [ebp - 0x8534]
push ecx
push eax
mov esi, eax
call fcn.00490894
add esp, 0xc
xor edx, edx
mov word [esi + ebx*2], dx
mov ecx, 0x4ca5f4
call fcn.00404300
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, dword [0x4c48bc]
jbe 0x433ea7
cmp ebx, dword [edi + 0x10]
jbe 0x433ea7
push 0x4ac0f0
push 0x4bcac8
mov ecx, 0x4ca650
call fcn.0042e420
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jae 0x433ecb
push 4
xor al, al
mov ecx, edi
call fcn.00477a80
mov eax, 1
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [edi + 0x15]
test al, 2
je 0x433ee1
and al, 0x3d
mov byte [edi + 0x15], al
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
and byte [edi + 0x15], 0x82
cmp ebx, dword [edi + 0x10]
jbe 0x433f0e
mov cl, byte [edi + 0x14]
cmp cl, 1
jbe 0x433f4a
cmp cl, 2
je 0x433f91
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
and byte [edi + 0x15], 0x7f
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x8534]
cmp eax, ecx
je 0x433f29
lea edx, [esi + esi]
push edx
push ecx
push eax
call fcn.0048e610
add esp, 0xc
mov edx, dword [edi + 8]
lea eax, [esi + esi]
xor ecx, ecx
mov word [eax + edx], cx
mov dword [edi + 0xc], eax
lea eax, [ecx + 1]
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x80
ja 0x433f91
cmp ebx, 8
ja 0x433f5e
mov esi, 8
jmp 0x433f6c
mov eax, 0x10
cmp eax, ebx
sbb esi, esi
and esi, 0x70
add esi, eax
mov eax, esi
call fcn.00471b50
test eax, eax
jne 0x433f88
xor eax, eax
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0x14], 1
jmp 0x433f01
cmp ebx, 0x20
jae 0x433fa0
mov esi, 0x20
jmp 0x434018
cmp ebx, 0x208
jae 0x433faf
mov esi, 0x208
jmp 0x434018
cmp ebx, 0x50000
jae 0x433fea
mov dword [ebp + 8], ebx
fild dword [ebp + 8]
test ebx, ebx
jns 0x433fc7
fadd qword [0x4be5a8]
fmul qword [0x4be5e0]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x30], eax
fldcw word [ebp - 0x30]
fistp qword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
fldcw word [ebp + 0xa]
jmp 0x434018
cmp ebx, 0x320000
jae 0x433ffa
lea esi, [ebx + 0x8000]
jmp 0x434018
cmp ebx, 0xc80000
jae 0x434012
mov eax, 0x51eb851f
mul ebx
mov esi, edx
shr esi, 5
add esi, ebx
jmp 0x434018
lea esi, [ebx + 0x20000]
mov eax, dword [0x4c48bc]
cmp esi, eax
jbe 0x434023
mov esi, eax
cmp cl, 2
jne 0x434056
cmp dword [edi + 0x10], 0
je 0x434056
mov ecx, dword [edi + 8]
push ecx
mov bl, 1
call fcn.0048f1ff
add esp, 4
test esi, esi
js 0x43405a
push esi
call fcn.0048dc24
add esp, 4
test eax, eax
je 0x43405a
mov byte [edi + 0x14], 2
jmp 0x433f01
xor bl, bl
jmp 0x43403c
test bl, bl
je 0x43406e
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0x4ca5c8
jmp 0x434076
mov edx, dword [edi + 8]
xor eax, eax
mov word [edx], ax
push 0x4ac0f0
push str.Out_of_memory.
mov ecx, 0x4ca650
mov dword [edi + 0xc], 0
call fcn.0042e420
lea esp, [ebp - 0x8544]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4