Function at 0x48fb90
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x60], edi
call fcn.0047aee0
mov ecx, edi
mov eax, dword [eax + 0xe0]
push eax
call fcn.00427980
push 9
xor eax, eax
mov dword [ebp - 0x20], 0
push str.hotkeybox
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
push 0
push 0x5bb308
push 0x5ba80c
push 0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00427170
push eax
call sub.msvcrt.dll___RTDynamicCast
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov dword [edi + 0x258], eax
cmp edx, 8
jb 0x48fc39
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fc2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
call fcn.0047acf0
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x80], eax
test eax, eax
jle 0x490969
mov ecx, dword [0x5bcfd0]
mov eax, dword fs:[0x2c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
nop dword [eax + eax]
mov eax, dword [0x5bc53c]
cmp eax, dword [ecx + 8]
jg 0x490982
mov eax, dword [0x5bc528]
xor ecx, ecx
mov edx, dword [0x5bc534]
test eax, eax
je 0x48fc9a
mov eax, dword [eax]
test eax, eax
je 0x48fc9a
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x48fcab
mov ecx, dword [ecx]
test ecx, ecx
je 0x48fcab
mov eax, dword [ecx]
test eax, eax
jne 0x48fcb3
xor edx, edx
jmp 0x48fcb5
mov edx, dword [eax]
mov ecx, dword [edx + 8]
mov eax, esi
shr eax, 1
dec ecx
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [eax + esi*8]
lea eax, [ebp - 0x38]
push eax
call fcn.0040abf0
push 0x43c
call fcn.0053488c
add esp, 4
test eax, eax
je 0x48fcf5
push 1
mov ecx, eax
call fcn.0043fd40
mov edi, eax
mov dword [ebp - 0x44], eax
jmp 0x48fcfa
xor edi, edi
mov dword [ebp - 0x44], edi
push 0x14
xor eax, eax
mov dword [ebp - 0x20], 0
push str.main_item_hotkey.xml
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.004097f0
mov edx, dword [ebp - 0x1c]
add esp, 0x30
cmp edx, 8
jb 0x48fd70
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fd66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
mov ebx, dword [ebp - 0x60]
mov ecx, dword [ebx + 0x258]
mov eax, dword [ecx]
call dword [eax + 0x15c]
test eax, eax
jne 0x48fdcd
mov ecx, edi
call fcn.00429f90
mov ecx, edi
mov esi, eax
call fcn.00429f10
push 1
sub esp, 8
mov ecx, esp
push 0
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebx + 0x258]
push 0x5bb1a0
push 0x5bac68
push 0
mov eax, dword [ecx]
call dword [eax + 0x18c]
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov ecx, eax
call fcn.0043c9a0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x14]
cmp eax, 4
je 0x48fdfb
cmp eax, 7
jne 0x48fe10
cmp dword [ebx + 0x7c], 0
jne 0x48fe10
push dword [ebx]
lea eax, [ebp - 0x30]
push str.lnk_d
push eax
call fcn.004014d0
add esp, 0xc
jmp 0x48fefc
cmp dword [ebx + 0x7c], 0
jne 0x48fe10
push 4
push str.url
lea ecx, [ebx + 0x6c]
call fcn.00402e60
lea eax, [ebx + 0x6c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403190
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x48fe60
lea eax, [ebx + 0x48]
lea ecx, [ebp - 0x5c]
cmp ecx, eax
je 0x48fe4a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48fe37
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00402e60
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x48fe60
push 4
push str.err
lea ecx, [ebp - 0x5c]
call fcn.00402e60
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x48fe96
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x23
je 0x48fe84
cmp ecx, 8
lea eax, [ebp - 0x5c]
cmovae eax, edx
cmp word [eax], 0x2a
jne 0x48fe96
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401570
add esp, 8
jmp 0x48feae
mov eax, dword [ebx]
test eax, eax
je 0x48fe84
push eax
lea eax, [ebp - 0x30]
push str.lnk_d
push eax
call fcn.004014d0
add esp, 0xc
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x48fee8
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fede
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x6c]
mov esi, dword [eax]
mov eax, dword [0x5bc68c]
cmp eax, dword [esi + 8]
jg 0x490a0e
push 1
lea eax, [ebp - 0x30]
mov ecx, 0x5bc660
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0046f900
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x48ff63
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ff59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
mov eax, dword [0x5bc68c]
cmp eax, dword [esi + 8]
jg 0x490a4e
lea eax, [ebp - 0x130]
mov ecx, 0x5bc660
push eax
call fcn.00470fb0
push 7
test al, al
jne 0x48ffc7
push str._s:err
lea ecx, [ebp - 0x130]
call fcn.00402e60
mov eax, dword [0x5bc68c]
cmp eax, dword [esi + 8]
jg 0x490a8e
lea eax, [ebp - 0x130]
mov ecx, 0x5bc660
push eax
call fcn.00470fb0
test al, al
je 0x49004d
push 7
xor eax, eax
mov dword [ebp - 4], 7
push str.hk_icon
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], eax
mov word [ebp - 0x18], ax
call fcn.00402e60
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004342c0
mov edx, dword [ebp - 4]
mov esi, eax
cmp edx, 8
jb 0x49002b
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
xor eax, eax
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
mov ecx, esi
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 7
push eax
call fcn.0042b530
push 7
xor eax, eax
mov dword [ebp - 8], 0
push str.hk_name
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
call fcn.00402e60
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004342c0
mov edx, dword [ebp - 4]
mov esi, eax
cmp edx, 8
jb 0x4900b7
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4900ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 7
lea ecx, [ebx + 0x18]
mov word [ebp - 0x18], ax
mov eax, dword [esi]
mov dword [ebp - 0x7c], ecx
push ecx
mov ecx, esi
call dword [eax + 0x154]
xor eax, eax
cmp dword [ebx + 0xbc], eax
je 0x490162
push 5
push 0x58354c
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
call fcn.00402e60
push 0
lea ecx, [esi + 0x3a8]
call fcn.00432750
lea ecx, [ebp - 0x98]
cmp eax, ecx
je 0x490142
cmp dword [ebp - 0x84], 8
push dword [ebp - 0x88]
cmovae ecx, dword [ebp - 0x98]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x49020b
mov ecx, dword [ebp - 0x98]
jmp 0x4901dc
push 3
push 0x583558
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
call fcn.00402e60
push 0
lea ecx, [esi + 0x3a8]
call fcn.00432750
lea ecx, [ebp - 0xb0]
cmp eax, ecx
je 0x4901c2
cmp dword [ebp - 0x9c], 8
push dword [ebp - 0xa0]
cmovae ecx, dword [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x49020b
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490201
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
movzx eax, word [ebx + 0xb8]
test ax, ax
je 0x490534
mov ebx, eax
mov dword [ebp - 0x20], 0
push 7
xor eax, eax
movzx esi, bl
push str.hk_text
lea ecx, [ebp - 0x30]
shr ebx, 8
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x30]
push eax
call fcn.004342c0
mov edx, dword [ebp - 0x1c]
mov edi, eax
cmp edx, 8
jb 0x49028e
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490284
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
test bl, 2
je 0x4902c4
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x4902d8
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 1
je 0x4902f1
cmp esi, 0x12
je 0x4902f1
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x49030a
cmp esi, 0x5b
je 0x49030a
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
test esi, esi
je 0x4903dd
push 0x80
push 0
push 0x5bc730
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp esi, 0x20
jne 0x490357
push str.Space
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x4903b8
cmp esi, 0x5b
jne 0x49036e
push 0x580098
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x4903b8
cmp esi, 5
jne 0x490385
push 0x5800a0
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x4903b8
cmp esi, 6
jne 0x49039c
push 0x5800a8
push 0x5bc730
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x4903b8
lea eax, [esi - 0x21]
push 0x40
push 0x5bc730
cmp eax, 0xe
ja 0x4903b1
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5bc730
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4903c0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5bc730
lea ecx, [ebp - 0x18]
call fcn.00402350
movups xmm0, xmmword [ebp - 0x18]
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
push ecx
movups xmmword [ebp - 0x118], xmm0
mov ecx, edi
movq xmm0, qword [ebp - 8]
movq qword [ebp - 0x108], xmm0
call dword [eax + 0x154]
mov edx, dword [ebp - 0x104]
cmp edx, 8
jb 0x490446
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49043c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49097d
push edx
push ecx
call fcn.005348bc
add esp, 8
mov ebx, dword [ebp - 0x38]
xor eax, eax
cmp dword [ebx + 0xbc], eax
je 0x4904c0
push 5
push 0x58354c
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
call fcn.00402e60
push 0
lea ecx, [edi + 0x3a8]
call fcn.00432750
lea ecx, [ebp - 0xe0]
cmp eax, ecx
je 0x4904af
cmp dword [ebp - 0xcc], 8
push dword [ebp - 0xd0]
cmovae ecx, dword [ebp - 0xe0]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x2c]
lea ecx, [ebp - 0xe0]
jmp 0x49052f
push 3
push 0x583558
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
call fcn.00402e60
push 0
lea ecx, [edi + 0x3a8]
call fcn.00432750
lea ecx, [ebp - 0xf8]
cmp eax, ecx
je 0x490520
cmp dword [ebp - 0xe4], 8
push dword [ebp - 0xe8]
cmovae ecx, dword [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x2c]
lea ecx, [ebp - 0xf8]
call fcn.00403070
xor eax, eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
cmp dword [ebx + 4], eax
je 0x49074d
mov ecx, dword [ebx + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
test ecx, ecx
je 0x490580
mov dword [ebp - 0x40], ebx
call fcn.0040f440
test al, al
je 0x490580
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x68]
mov eax, dword [0x5bc65c]
cmp eax, dword [ecx + 8]
jg 0x490ace
mov edx, dword [0x5bc64c]
mov esi, edx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x70], ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4905cd
nop dword [eax + eax]
cmp dword [eax + 0x10], ecx
jge 0x4905ba
mov eax, dword [eax + 8]
jmp 0x4905be
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4905b0
cmp esi, edx
je 0x4905cd
cmp ecx, dword [esi + 0x10]
jge 0x490601
lea eax, [ebp - 0x70]
mov ecx, 0x5bc64c
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x39]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x5819d0
call fcn.00472670
push eax
add eax, 0x10
mov ecx, 0x5bc64c
push eax
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00472e00
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x100]
push eax
lea ecx, [esi + 0x14]
call fcn.0040abf0
mov esi, dword [ebp - 0x100]
test esi, esi
je 0x490689
add esi, 0x14
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
add eax, 3
push eax
call fcn.0040c1b0
cmp dword [esi + 0x14], 8
jb 0x49064a
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 3
push 0x582a44
lea ecx, [ebp - 0x18]
call fcn.00402350
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402350
lea ecx, [ebp - 0x18]
call fcn.00403070
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4906fa
xor eax, eax
mov dword [ebp - 8], 0
lea esi, [ebx + 0x14]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
add eax, 2
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c1b0
cmp dword [esi + 0x14], 8
jb 0x4906be
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x599e68
lea ecx, [ebp - 0x18]
call fcn.00402350
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402350
lea ecx, [ebp - 0x18]
call fcn.00403070
mov esi, dword [ebp - 0xfc]
test esi, esi
je 0x490725
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x490725
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x490725
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x49074a
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x49074a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x49074a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
lea esi, [edi + 0x10]
mov eax, dword [esi]
add eax, 2
mov dword [ebp - 4], 7
push eax
call fcn.0040c1b0
cmp dword [edi + 0x14], 8
jb 0x49077d
mov edi, dword [edi]
push dword [esi]
lea ecx, [ebp - 0x18]
push edi
call fcn.00402350
push 2
push 0x599e68
lea ecx, [ebp - 0x18]
call fcn.00402350
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402350
lea ecx, [ebp - 0x18]
call fcn.00403070
xor eax, eax
mov dword [ebp - 8], 0
lea esi, [ebx + 0x48]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
add eax, 2
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c1b0
cmp dword [esi + 0x14], 8
jb 0x4907ea
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x599e68
lea ecx, [ebp - 0x18]
call fcn.00402350
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402350
lea ecx, [ebp - 0x18]
call fcn.00403070
cmp dword [ebx + 0xec], 0
jbe 0x49089f
xor eax, eax
mov dword [ebp - 8], 0
lea esi, [ebx + 0xdc]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
add eax, 2
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c1b0
cmp dword [esi + 0x14], 8
jb 0x490863
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x599e68
lea ecx, [ebp - 0x18]
call fcn.00402350
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push dword [ebp - 8]
cmovae eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402350
lea ecx, [ebp - 0x18]
call fcn.00403070
call fcn.0047aee0
cmp byte [eax + 0x36], 0
je 0x4908e8
push dword [ebx + 0x10c]
lea eax, [ebp - 0x118]
push 0x582a4c
push eax
call fcn.004014d0
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4908ce
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00402350
lea ecx, [ebp - 0x118]
call fcn.00403070
mov ebx, dword [ebp - 0x44]
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x48]
mov eax, dword [ebx]
mov ecx, ebx
push 0x190
call dword [eax + 0x58]
mov edi, dword [ebp - 0x60]
push ebx
mov ecx, dword [edi + 0x258]
mov eax, dword [ecx]
call dword [eax + 0x160]
lea ecx, [ebp - 0xc8]
call fcn.00403070
lea ecx, [ebp - 0x130]
call fcn.00403070
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x490955
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x490955
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x490955
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x64]
inc ebx
mov dword [ebp - 0x64], ebx
cmp ebx, dword [ebp - 0x80]
jge 0x490969
mov ecx, dword [ebp - 0x68]
jmp 0x48fc70
mov ecx, dword [edi + 0x258]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00560be0
push 0x5bc53c
call fcn.00534d04
add esp, 4
cmp dword [0x5bc53c], 0xffffffff
jne 0x48fc81
push 8
mov dword [0x5bc528], 0
mov dword [0x5bc52c], 0
mov dword [0x5bc530], 0
mov dword [0x5bc534], 0
mov dword [0x5bc538], 0
call fcn.0053488c
mov dword [0x5bc528], eax
push 0x57ad90
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [0x5bc528]
mov dword [eax], 0x5bc528
call fcn.00534b32
push 0x5bc53c
call fcn.00534cba
add esp, 0xc
jmp 0x48fc81
push 0x5bc68c
call fcn.00534d04
add esp, 4
cmp dword [0x5bc68c], 0xffffffff
jne 0x48ff12
mov ecx, 0x5bc660
call fcn.0046c9e0
push 0x57ada0
call fcn.00534b32
push 0x5bc68c
call fcn.00534cba
add esp, 8
jmp 0x48ff12
push 0x5bc68c
call fcn.00534d04
add esp, 4
cmp dword [0x5bc68c], 0xffffffff
jne 0x48ff74
mov ecx, 0x5bc660
call fcn.0046c9e0
push 0x57ada0
call fcn.00534b32
push 0x5bc68c
call fcn.00534cba
add esp, 8
jmp 0x48ff74
push 0x5bc68c
call fcn.00534d04
add esp, 4
cmp dword [0x5bc68c], 0xffffffff
jne 0x48ffac
mov ecx, 0x5bc660
call fcn.0046c9e0
push 0x57ada0
call fcn.00534b32
push 0x5bc68c
call fcn.00534cba
add esp, 8
jmp 0x48ffac
push 0x5bc65c
call fcn.00534d04
add esp, 4
cmp dword [0x5bc65c], 0xffffffff
jne 0x490594
mov ecx, 0x5bc628
call fcn.00473a20
push 0x57adb0
call fcn.00534b32
push 0x5bc65c
call fcn.00534cba
add esp, 8
jmp 0x490594