Function at 0x48f900
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 0x5ba308
push 0x5b980c
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 0x48f9a9
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48f99f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 0x4906d9
mov ecx, dword [0x5bbfc0]
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 [0x5bb53c]
cmp eax, dword [ecx + 8]
jg 0x4906f2
mov eax, dword [0x5bb528]
xor ecx, ecx
mov edx, dword [0x5bb534]
test eax, eax
je 0x48fa0a
mov eax, dword [eax]
test eax, eax
je 0x48fa0a
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x48fa1b
mov ecx, dword [ecx]
test ecx, ecx
je 0x48fa1b
mov eax, dword [ecx]
test eax, eax
jne 0x48fa23
xor edx, edx
jmp 0x48fa25
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.0053428c
add esp, 4
test eax, eax
je 0x48fa65
push 1
mov ecx, eax
call fcn.0043fd40
mov edi, eax
mov dword [ebp - 0x44], eax
jmp 0x48fa6a
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 0x48fae0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fad6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 0x48fb3d
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 0x5ba1a0
push 0x5b9c68
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 0x48fb6b
cmp eax, 7
jne 0x48fb80
cmp dword [ebx + 0x7c], 0
jne 0x48fb80
push dword [ebx]
lea eax, [ebp - 0x30]
push str.lnk_d
push eax
call fcn.004014d0
add esp, 0xc
jmp 0x48fc6c
cmp dword [ebx + 0x7c], 0
jne 0x48fb80
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 0x48fbd0
lea eax, [ebx + 0x48]
lea ecx, [ebp - 0x5c]
cmp ecx, eax
je 0x48fbba
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48fba7
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 0x48fbd0
push 4
push str.err
lea ecx, [ebp - 0x5c]
call fcn.00402e60
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x48fc06
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 0x48fbf4
cmp ecx, 8
lea eax, [ebp - 0x5c]
cmovae eax, edx
cmp word [eax], 0x2a
jne 0x48fc06
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401570
add esp, 8
jmp 0x48fc1e
mov eax, dword [ebx]
test eax, eax
je 0x48fbf4
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 0x48fc58
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fc4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 [0x5bb68c]
cmp eax, dword [esi + 8]
jg 0x49077e
push 1
lea eax, [ebp - 0x30]
mov ecx, 0x5bb660
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0046f900
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x48fcd3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fcc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
add esp, 8
mov eax, dword [0x5bb68c]
cmp eax, dword [esi + 8]
jg 0x4907be
lea eax, [ebp - 0x130]
mov ecx, 0x5bb660
push eax
call fcn.00470fb0
push 7
test al, al
jne 0x48fd37
push str._s:err
lea ecx, [ebp - 0x130]
call fcn.00402e60
mov eax, dword [0x5bb68c]
cmp eax, dword [esi + 8]
jg 0x4907fe
lea eax, [ebp - 0x130]
mov ecx, 0x5bb660
push eax
call fcn.00470fb0
test al, al
je 0x48fdbd
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 0x48fd9b
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fd91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 0x48fe27
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fe1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 0x48fed2
push 5
push 0x58250c
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 0x48feb2
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 0x48ff7b
mov ecx, dword [ebp - 0x98]
jmp 0x48ff4c
push 3
push 0x582518
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 0x48ff32
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 0x48ff7b
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ff71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
add esp, 8
movzx eax, word [ebx + 0xb8]
test ax, ax
je 0x4902a4
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 0x48fffe
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48fff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
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 0x490034
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x490048
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 1
je 0x490061
cmp esi, 0x12
je 0x490061
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x49007a
cmp esi, 0x5b
je 0x49007a
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
test esi, esi
je 0x49014d
push 0x80
push 0
push 0x5bb720
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 0x4900c7
push str.Space
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x490128
cmp esi, 0x5b
jne 0x4900de
push 0x57f058
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x490128
cmp esi, 5
jne 0x4900f5
push 0x57f060
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x490128
cmp esi, 6
jne 0x49010c
push 0x57f068
push 0x5bb720
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x490128
lea eax, [esi - 0x21]
push 0x40
push 0x5bb720
cmp eax, 0xe
ja 0x490121
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5bb720
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490130
sub ecx, edx
sar ecx, 1
push ecx
push 0x5bb720
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 0x4901b6
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4901ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4906ed
push edx
push ecx
call fcn.005342bc
add esp, 8
mov ebx, dword [ebp - 0x38]
xor eax, eax
cmp dword [ebx + 0xbc], eax
je 0x490230
push 5
push 0x58250c
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 0x49021f
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 0x49029f
push 3
push 0x582518
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 0x490290
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 0x4904bd
mov ecx, dword [ebx + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
test ecx, ecx
je 0x4902f0
mov dword [ebp - 0x40], ebx
call fcn.0040f440
test al, al
je 0x4902f0
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 [0x5bb65c]
cmp eax, dword [ecx + 8]
jg 0x49083e
mov edx, dword [0x5bb64c]
mov esi, edx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x70], ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x49033d
nop dword [eax + eax]
cmp dword [eax + 0x10], ecx
jge 0x49032a
mov eax, dword [eax + 8]
jmp 0x49032e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x490320
cmp esi, edx
je 0x49033d
cmp ecx, dword [esi + 0x10]
jge 0x490371
lea eax, [ebp - 0x70]
mov ecx, 0x5bb64c
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x39]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x580990
call fcn.00472670
push eax
add eax, 0x10
mov ecx, 0x5bb64c
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 0x4903f9
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 0x4903ba
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 3
push 0x581a04
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 0x49046a
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 0x49042e
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x598df8
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 0x490495
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x490495
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x490495
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x4904ba
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4904ba
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4904ba
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 0x4904ed
mov edi, dword [edi]
push dword [esi]
lea ecx, [ebp - 0x18]
push edi
call fcn.00402350
push 2
push 0x598df8
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 0x49055a
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x598df8
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 0x49060f
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 0x4905d3
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x18]
push esi
call fcn.00402350
push 2
push 0x598df8
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 0x490658
push dword [ebx + 0x10c]
lea eax, [ebp - 0x118]
push 0x581a0c
push eax
call fcn.004014d0
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x49063e
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 0x4906c5
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4906c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4906c5
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 0x4906d9
mov ecx, dword [ebp - 0x68]
jmp 0x48f9e0
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.00560610
push 0x5bb53c
call fcn.00534704
add esp, 4
cmp dword [0x5bb53c], 0xffffffff
jne 0x48f9f1
push 8
mov dword [0x5bb528], 0
mov dword [0x5bb52c], 0
mov dword [0x5bb530], 0
mov dword [0x5bb534], 0
mov dword [0x5bb538], 0
call fcn.0053428c
mov dword [0x5bb528], eax
push 0x57a7c0
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [0x5bb528]
mov dword [eax], 0x5bb528
call fcn.00534532
push 0x5bb53c
call fcn.005346ba
add esp, 0xc
jmp 0x48f9f1
push 0x5bb68c
call fcn.00534704
add esp, 4
cmp dword [0x5bb68c], 0xffffffff
jne 0x48fc82
mov ecx, 0x5bb660
call fcn.0046c9e0
push 0x57a7d0
call fcn.00534532
push 0x5bb68c
call fcn.005346ba
add esp, 8
jmp 0x48fc82
push 0x5bb68c
call fcn.00534704
add esp, 4
cmp dword [0x5bb68c], 0xffffffff
jne 0x48fce4
mov ecx, 0x5bb660
call fcn.0046c9e0
push 0x57a7d0
call fcn.00534532
push 0x5bb68c
call fcn.005346ba
add esp, 8
jmp 0x48fce4
push 0x5bb68c
call fcn.00534704
add esp, 4
cmp dword [0x5bb68c], 0xffffffff
jne 0x48fd1c
mov ecx, 0x5bb660
call fcn.0046c9e0
push 0x57a7d0
call fcn.00534532
push 0x5bb68c
call fcn.005346ba
add esp, 8
jmp 0x48fd1c
push 0x5bb65c
call fcn.00534704
add esp, 4
cmp dword [0x5bb65c], 0xffffffff
jne 0x490304
mov ecx, 0x5bb628
call fcn.00473a20
push 0x57a7e0
call fcn.00534532
push 0x5bb65c
call fcn.005346ba
add esp, 8
jmp 0x490304