Function at 0x4333f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8560
call fcn.004993f0
mov eax, dword [0x4c8480]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x43343f
cmp dword [0x4c96d8], 1
mov edx, dword [ebp + 8]
sete al
test al, al
sete al
movzx ecx, al
push ecx
push edx
mov dword [0x4c96d8], ebx
call fcn.0042e1b0
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c84e4]
mov edi, dword [0x4c84dc]
mov esi, dword [0x4c84e0]
mov dword [ebp - 0x28], eax
mov dword [0x4c96d8], ebx
mov dword [0x4c9704], 1
mov word [0x4c9708], bx
mov dword [0x4c9714], 0x3fff
movzx eax, word [edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 6], bl
cmp ax, bx
je 0x433554
lea ebx, [edi + 2]
lea esp, [esp]
movzx esi, ax
test esi, 0xffffff80
jne 0x4334ad
push 2
push esi
call fcn.0048ee7e
add esp, 8
test eax, eax
je 0x4334ad
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x4334c3.43
movzx ecx, byte [eax + 0x434354]
jmp dword [ecx*4 + 0x43432c]
mov byte [0x4c9704], 0
jmp case.0x4334c3.43
mov byte [0x4c9705], 1
jmp case.0x4334c3.43
mov byte [0x4c9706], 1
jmp case.0x4334c3.43
mov byte [0x4c9707], 1
jmp case.0x4334c3.43
push ebx
call fcn.0048eec6
add esp, 4
mov dword [0x4c9714], eax
cmp eax, 0x3fff
jle case.0x4334c3.43
mov dword [0x4c9714], 0x3fff
jmp case.0x4334c3.43
mov esi, ebx
call fcn.00413b30
fmul qword [0x4bea68]
call fcn.0049c520
mov dword [ebp - 0x20], eax
jmp case.0x4334c3.43
mov byte [0x4c9708], 1
jmp case.0x4334c3.43
mov byte [0x4c9709], 1
jmp case.0x4334c3.43
mov byte [ebp - 6], 1
movzx eax, word [edi + 2]
add edi, 2
add ebx, 2
test ax, ax
jne 0x433490
mov esi, dword [ebp - 0x18]
xor ebx, ebx
push 0xff
lea edx, [ebp - 0x35b]
push ebx
push edx
mov byte [ebp - 0x35c], 0
call fcn.00496ad0
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x55b]
push ebx
push eax
mov byte [ebp - 0x55c], 0
call fcn.00496ad0
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 0x4336d1
xor edx, edx
mov word [ebp - 0x1c], dx
movzx ecx, word [eax]
mov eax, ecx
sub eax, 0x7b
je 0x4335f0
sub eax, 2
je 0x4336be
cmp byte [ebp - 6], dl
je 0x4335c9
inc dword [ebp - 0xc]
jmp 0x4336be
push 0
mov word [ebp - 0x1c], cx
mov byte [ebp - 5], dl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea ecx, [ebp - 5]
lea eax, [ebp - 0x1c]
call fcn.00412b00
add esp, 8
mov bl, al
jmp 0x433685
mov ebx, dword [ebp - 0x14]
lea edi, [ebx + 2]
push 0x7d
push edi
call fcn.0048ea0b
mov esi, eax
add esp, 8
test esi, esi
je 0x4336be
sub eax, ebx
sar eax, 1
dec eax
jne 0x433622
cmp word [esi + 2], 0x7d
jne 0x4336be
add esi, 2
jmp 0x433627
cmp eax, 1
jne 0x43363c
cmp byte [ebp - 6], 0
je 0x433635
inc dword [ebp - 0xc]
jmp 0x4336be
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 eax
push 1
lea ecx, [ebp - 5]
mov eax, edi
call fcn.00412b00
mov bl, al
add esp, 8
test bl, bl
jne 0x43367a
mov eax, edi
call fcn.00412a50
movzx eax, ax
test ax, ax
je 0x43367a
mov edx, eax
mov byte [ebp + edx - 0x55c], 1
mov eax, 0x7d
mov word [esi], ax
mov dword [ebp - 0x14], esi
test bl, bl
je 0x4336be
movzx esi, bl
or byte [ebp + esi - 0x35c], 1
cmp word [ebp - 0x1c], 0
lea esi, [ebp + esi - 0x35c]
je 0x4336be
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x4336be
test byte [ebp - 5], 0x30
je 0x4336bb
or byte [esi], 2
jmp 0x4336be
or byte [esi], 4
mov eax, dword [ebp - 0x14]
add eax, 2
cmp word [eax], 0
mov dword [ebp - 0x14], eax
jne 0x4335a3
mov eax, dword [ebp - 0xc]
mov dword [0x4c96e4], 0x4a1868
test eax, eax
je 0x433757
lea eax, [eax + eax + 2]
call fcn.00495210
mov esi, dword [ebp - 0x18]
mov eax, esp
mov dword [0x4c96e4], eax
cmp word [esi], 0
mov ebx, eax
je 0x433752
lea ecx, [ecx]
movzx ecx, word [esi]
mov eax, ecx
sub eax, 0x7b
je 0x433717
sub eax, 2
je 0x433749
mov word [ebx], cx
add ebx, 2
jmp 0x433749
lea edi, [esi + 2]
push 0x7d
push edi
call fcn.0048ea0b
add esp, 8
test eax, eax
je 0x433749
cmp eax, edi
jne 0x433737
cmp word [eax + 2], 0x7d
jne 0x433737
add eax, 2
add esi, 4
cmp eax, esi
jne 0x433747
mov dx, word [edi]
mov word [ebx], dx
add ebx, 2
mov esi, eax
add esi, 2
cmp word [esi], 0
jne 0x433700
xor eax, eax
mov word [ebx], ax
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4c96f4], edi
cmp word [ecx], di
je 0x433991
cmp dword [0x4c96f0], edi
jne 0x43379a
push 0x1000
call fcn.0048dc84
add esp, 4
mov dword [0x4c96f0], eax
cmp eax, edi
je 0x433880
mov dword [0x4c96f8], 0x400
cmp byte [esi + 1], 3
ja 0x4337a7
xor eax, eax
jmp 0x43382f
mov eax, dword [0x4c848c]
cmp eax, edi
je 0x433810
mov dl, byte [eax + 0x17]
test dl, dl
jne 0x4337bf
mov ecx, dword [eax + 0xc]
mov cl, byte [ecx + 0x17]
jmp 0x4337c1
mov cl, dl
cmp cl, 1
jne 0x433810
movzx ecx, byte [esi]
lea ebx, [ecx*8]
sub ebx, ecx
test byte [ebx*2 + 0x4c4a2e], 0x80
jne 0x433810
cmp dword [0x4c86a0], edi
jne 0x433801
test dl, dl
jne 0x4337ed
mov ecx, dword [eax + 0xc]
jmp 0x4337ef
mov ecx, eax
test byte [ecx + 0x15], 0xa
jne 0x433801
xor edx, edx
cmp dword [ecx + 0xc], edi
setne dl
cmp edx, edi
je 0x433810
cmp eax, dword [0x4c8d38]
je 0x433810
call fcn.00414000
jmp 0x43382f
mov eax, dword [0x4c84e4]
lea edx, [eax + 2]
jmp 0x433820
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x433820
sub eax, edx
sar eax, 1
inc eax
cmp eax, dword [0x4c9700]
jbe 0x4338a1
mov dword [0x4c9700], eax
cmp eax, 0x1000
ja 0x43384e
mov dword [0x4c9700], 0x1000
mov eax, dword [0x4c96fc]
cmp eax, edi
je 0x433860
push eax
call fcn.0048e9d1
add esp, 4
mov eax, dword [0x4c9700]
lea ecx, [eax + eax]
push ecx
call fcn.0048dc84
add esp, 4
mov dword [0x4c96fc], eax
cmp eax, edi
jne 0x4338a6
mov dword [0x4c9700], edi
push 0x4a1868
push edi
push str.Out_of_memory.
mov ecx, esi
call fcn.0042e380
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c96fc]
mov edx, dword [0x4c96f0]
mov ecx, dword [0x4c96f4]
mov edi, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
cmp word [edi], 0
mov esi, dword [0x4c96fc]
je 0x433971
mov ebx, 0x2c
lea ecx, [ecx]
movzx eax, word [edi]
cmp ax, bx
je 0x4338e3
mov word [esi], ax
add esi, 2
jmp 0x433964
cmp word [edi + 2], bx
jne 0x4338f6
mov edx, ebx
mov word [esi], dx
add esi, 2
add edi, 2
jmp 0x433964
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x4c96f0]
mov eax, dword [0x4c96f4]
mov edx, dword [ecx + eax*4]
cmp word [edx], 0
je 0x43392b
inc eax
mov dword [0x4c96f4], eax
add esi, 2
mov dword [ecx + eax*4], esi
xor eax, eax
mov word [esi], ax
mov eax, dword [0x4c96f4]
mov ecx, dword [0x4c96f0]
cmp word [edi + 2], 0
je 0x433964
mov edx, dword [0x4c96f8]
cmp eax, edx
jb 0x433964
lea edx, [edx*4 + 0x1000]
push edx
push ecx
call fcn.0048eee7
add esp, 8
test eax, eax
je 0x433a9c
add dword [0x4c96f8], 0x400
mov dword [0x4c96f0], eax
add edi, 2
cmp word [edi], 0
jne 0x4338d0
xor eax, eax
mov word [esi], ax
mov ecx, dword [0x4c96f0]
mov edx, dword [0x4c96f4]
mov eax, dword [ecx + edx*4]
cmp word [eax], 0
je 0x433991
inc dword [0x4c96f4]
cmp byte [0x4c8691], 0
je 0x4339cf
mov ecx, dword [0x4c8538]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4339b4
mov byte [0x4c8691], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x4339cf
push 1
push 0xffffffffffffffff
call fcn.004013d0
add esp, 8
or byte [0x4c8f4a], 1
xor edx, edx
cmp dword [0x4c8668], 0
mov word [ebp - 0x855c], dx
mov dword [0x4c9710], edx
lea eax, [ebp - 0x855c]
lea ecx, [ebp - 0x35c]
lea edx, [ebp - 0x55c]
mov dword [0x4c970c], eax
mov dword [0x4c96dc], ecx
mov dword [0x4c96e0], edx
mov dword [0x4c96d8], 1
mov byte [0x4c868c], 1
jne 0x433a33
mov eax, dword [0x4c5b28]
movzx ecx, word [eax]
push ecx
call fcn.00407d90
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x433a70
cmp byte [0x4c8691], 0
jne 0x433a70
cmp eax, 0xa
jge 0x433a4d
mov eax, 0xa
mov edx, dword [0x4c8538]
push 0x403830
push eax
push 0xc
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne al
mov byte [0x4c8691], al
lea esp, [esp]
push 1
push 0x8000012f
call fcn.004013d0
mov eax, dword [0x4c96d8]
add esp, 8
cmp eax, 1
je 0x433a70
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x433a95
jmp dword [eax*4 + 0x434384]
mov ecx, dword [ebp + 8]
push 0x4a1868
push 0
push str.Out_of_memory.
call fcn.0042e380
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push str.Timeout
push ecx
call fcn.00477510
jmp 0x433e76
mov edx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push str.Match
push edx
call fcn.00477510
jmp 0x433e76
mov ecx, dword [0x4aad14]
mov eax, dword [str.EndKey:]
mov edx, dword [0x4aad18]
push pe_nt_image_headers32
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [0x4aad1c]
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], eax
call fcn.00496ad0
mov ax, word [0x4c96ec]
add esp, 0xc
test ax, ax
je 0x433b5b
xor edx, edx
mov word [ebp - 0x11e], ax
mov word [ebp - 0x11c], dx
jmp 0x433ccf
cmp byte [0x4c96ef], 0
je 0x433c28
push 0xff
lea eax, [ebp - 0x25b]
push 0
push eax
mov byte [ebp - 0x25c], 0
call fcn.00496ad0
or byte [ebp - 0x24c], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x433bd1
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
lea ecx, [ebp - 0x15c]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x15c], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x433bd1
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x433bd1
push 0
push eax
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
cmp dword [0x4c86c8], edx
push eax
setne dl
lea eax, [ebp - 0x11e]
lea ecx, [ebp - 0x25c]
xor bl, bl
push edx
movzx edx, byte [0x4c96e8]
push 2
push eax
push ecx
push edx
call fcn.00413090
movzx ecx, byte [0x4c96e8]
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 - 0x11e], dx
jmp 0x433ccf
cmp byte [0x4c96ee], 0
je 0x433c8f
mov cx, word [0x4c96ea]
xor eax, eax
lea ebx, [ebx]
cmp word [eax*8 + 0x4c5abc], cx
je 0x433c6e
inc eax
cmp eax, 0xd
jl 0x433c40
movzx eax, cx
push eax
push str.sc_03X
mov esi, 0x79
lea edi, [ebp - 0x11e]
call fcn.00474670
add esp, 8
jmp 0x433caa
mov eax, dword [eax*8 + 0x4c5ab8]
push 0x78
push eax
lea ecx, [ebp - 0x11e]
push ecx
call fcn.004908f4
add esp, 0xc
xor edx, edx
mov word [ebp - 0x2e], dx
jmp 0x433caa
mov bl, byte [0x4c96e8]
push 1
mov eax, 0x79
lea ecx, [ebp - 0x11e]
call fcn.004128b0
add esp, 4
mov ecx, dword [ebp - 0x11e]
add ecx, 0xffffff9f
cmp cx, 0x19
ja 0x433ccf
cmp word [ebp - 0x11c], 0
jne 0x433ccf
mov edx, 0xffe0
add word [ebp - 0x11e], dx
mov ecx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x12c]
push eax
push ecx
call fcn.00477510
jmp 0x433e76
mov edx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7ef8
push edx
call fcn.00477510
jmp 0x433e76
mov ecx, dword [0x4c8d38]
mov al, byte [ecx + 0x17]
mov dword [ebp - 0xc], ecx
test al, al
jne 0x433d32
mov eax, dword [ecx + 0xc]
push 1
push 0
push 0xffffffffffffffff
push str.NewInput
push eax
call fcn.00477510
jmp 0x433e76
cmp dword [ecx + 8], str.NewInput
lea edx, [ecx + 8]
mov dword [ebp - 0x14], edx
jne 0x433d48
mov edx, dword [ecx + 0xc]
shr edx, 1
jmp 0x433d4d
mov edx, 8
lea esi, [edx + 1]
mov dword [ebp - 0x18], edx
lea ebx, [esi + esi]
cmp al, 2
jne 0x433db9
cmp dword [0x4ca25c], 0
mov ebx, edx
jne 0x433e76
cmp edx, 0xffffffff
jne 0x433d75
mov ebx, 8
jmp 0x433d79
test edx, edx
je 0x433daa
lea edi, [ebx + 1]
mov esi, 0x4ca250
call fcn.00404230
test eax, eax
je 0x433e76
mov eax, dword [0x4ca25c]
push ebx
push str.NewInput
push eax
mov esi, eax
call fcn.004908f4
add esp, 0xc
xor ecx, ecx
mov word [esi + ebx*2], cx
mov ecx, 0x4ca250
call fcn.004042b0
jmp 0x433e76
cmp ebx, dword [0x4c4924]
jbe 0x433ddf
cmp ebx, dword [ecx + 0x10]
jbe 0x433ddf
push 0x4a1868
push 0x4bce28
mov ecx, 0x4c9718
call fcn.0042e650
jmp 0x433e76
cmp esi, 2
jae 0x433df2
push 4
xor al, al
call fcn.00477ad0
jmp 0x433e76
mov al, byte [ecx + 0x15]
lea edi, [ecx + 0x15]
test al, 2
je 0x433e0a
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 0x433e45
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x433ef0
cmp cl, 2
je 0x433f2d
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 0x433e66
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx]
push edx
push str.NewInput
push eax
call fcn.0048e670
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi]
add eax, eax
xor edx, edx
mov word [eax + ecx], dx
mov dword [esi + 0xc], eax
cmp byte [0x4c8691], 0
mov edi, dword [ebp - 0x10]
mov dword [0x4c96d8], 0
je 0x433ec0
mov eax, dword [0x4c8538]
push 0xc
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x433ea5
mov byte [0x4c8691], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x433ec0
push 1
push 0xffffffffffffffff
call fcn.004013d0
add esp, 8
mov dl, byte [edi + 0x17]
test dl, dl
jne 0x43403f
mov edx, dword [edi + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x855c]
push ecx
push edx
call fcn.00477510
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x80
ja 0x433f2d
cmp ebx, 8
ja 0x433f04
mov esi, 8
jmp 0x433f12
mov ecx, 0x10
cmp ecx, ebx
sbb esi, esi
and esi, 0x70
add esi, ecx
mov eax, esi
call fcn.004719f0
test eax, eax
je 0x433e76
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], 1
jmp 0x433e35
cmp ebx, 0x20
jae 0x433f39
mov esi, 0x20
jmp 0x433fb4
cmp ebx, 0x208
jae 0x433f48
mov esi, 0x208
jmp 0x433fb4
cmp ebx, 0x50000
jae 0x433f83
mov dword [ebp + 8], ebx
fild dword [ebp + 8]
test ebx, ebx
jns 0x433f60
fadd qword [0x4bea40]
fmul qword [0x4bea78]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
fldcw word [ebp + 0xa]
jmp 0x433fb4
cmp ebx, 0x320000
jae 0x433f93
lea esi, [ebx + 0x8000]
jmp 0x433fb4
cmp ebx, 0xc80000
jae 0x433fae
mov eax, 0x51eb851f
mul ebx
mov esi, edx
mov edx, dword [ebp + 8]
shr esi, 5
add esi, ebx
jmp 0x433fb4
lea esi, [ebx + 0x20000]
mov eax, dword [0x4c4924]
cmp esi, eax
jbe 0x433fbf
mov esi, eax
cmp cl, 2
jne 0x433ff5
test edx, edx
je 0x433ff5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov bl, 1
call fcn.0048e9d1
add esp, 4
test esi, esi
js 0x433ff9
push esi
call fcn.0048dc84
add esp, 4
test eax, eax
je 0x433ff9
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], 2
jmp 0x433e35
xor bl, bl
jmp 0x433fd8
test bl, bl
je 0x434012
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [ecx], 0x4c96ac
jmp 0x43401c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0xc]
push 0x4a1868
push str.Out_of_memory.
mov ecx, 0x4c9718
mov dword [edx + 0xc], 0
call fcn.0042e650
jmp 0x433e76
lea eax, [ebp - 0x855c]
cmp dword [edi + 8], eax
jne 0x434054
mov esi, dword [edi + 0xc]
shr esi, 1
mov dword [ebp - 0x20], esi
jmp 0x434074
lea eax, [ebp - 0x855c]
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434060
sub eax, esi
sar eax, 1
mov esi, eax
mov dword [ebp - 0x20], eax
lea eax, [esi + 1]
lea ebx, [eax + eax]
cmp dl, 2
jne 0x434101
cmp dword [0x4ca25c], 0
mov ebx, esi
jne 0x434201
cmp esi, 0xffffffff
jne 0x4340b1
lea eax, [ebp - 0x855c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4340a0
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
je 0x4340e8
lea edi, [ebx + 1]
mov esi, 0x4ca250
call fcn.00404230
test eax, eax
je 0x434201
mov eax, dword [0x4ca25c]
push ebx
lea ecx, [ebp - 0x855c]
push ecx
push eax
mov esi, eax
call fcn.004908f4
add esp, 0xc
xor edx, edx
mov word [esi + ebx*2], dx
mov ecx, 0x4ca250
call fcn.004042b0
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, dword [0x4c4924]
jbe 0x434131
cmp ebx, dword [edi + 0x10]
jbe 0x434131
push 0x4a1868
push 0x4bce28
mov ecx, 0x4c9718
call fcn.0042e650
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jae 0x434155
push 4
xor al, al
mov ecx, edi
call fcn.00477ad0
mov eax, 1
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [edi + 0x15]
test al, 2
je 0x43416b
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 0x434198
mov cl, byte [edi + 0x14]
cmp cl, 1
jbe 0x4341d4
cmp cl, 2
je 0x43421b
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
and byte [edi + 0x15], 0x7f
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x855c]
cmp eax, ecx
je 0x4341b3
lea edx, [esi + esi]
push edx
push ecx
push eax
call fcn.0048e670
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 - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0x80
ja 0x43421b
cmp ebx, 8
ja 0x4341e8
mov esi, 8
jmp 0x4341f6
mov eax, 0x10
cmp eax, ebx
sbb esi, esi
and esi, 0x70
add esi, eax
mov eax, esi
call fcn.004719f0
test eax, eax
jne 0x434212
xor eax, eax
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0x14], 1
jmp 0x43418b
cmp ebx, 0x20
jae 0x43422a
mov esi, 0x20
jmp 0x4342a2
cmp ebx, 0x208
jae 0x434239
mov esi, 0x208
jmp 0x4342a2
cmp ebx, 0x50000
jae 0x434274
mov dword [ebp + 8], ebx
fild dword [ebp + 8]
test ebx, ebx
jns 0x434251
fadd qword [0x4bea40]
fmul qword [0x4bea78]
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 0x4342a2
cmp ebx, 0x320000
jae 0x434284
lea esi, [ebx + 0x8000]
jmp 0x4342a2
cmp ebx, 0xc80000
jae 0x43429c
mov eax, 0x51eb851f
mul ebx
mov esi, edx
shr esi, 5
add esi, ebx
jmp 0x4342a2
lea esi, [ebx + 0x20000]
mov eax, dword [0x4c4924]
cmp esi, eax
jbe 0x4342ad
mov esi, eax
cmp cl, 2
jne 0x4342e0
cmp dword [edi + 0x10], 0
je 0x4342e0
mov ecx, dword [edi + 8]
push ecx
mov bl, 1
call fcn.0048e9d1
add esp, 4
test esi, esi
js 0x4342e4
push esi
call fcn.0048dc84
add esp, 4
test eax, eax
je 0x4342e4
mov byte [edi + 0x14], 2
jmp 0x43418b
xor bl, bl
jmp 0x4342c6
test bl, bl
je 0x4342f8
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0x4c96ac
jmp 0x434300
mov edx, dword [edi + 8]
xor eax, eax
mov word [edx], ax
push 0x4a1868
push str.Out_of_memory.
mov ecx, 0x4c9718
mov dword [edi + 0xc], 0
call fcn.0042e650
lea esp, [ebp - 0x856c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4