Function at 0x53d58c
Capabilities:
Access peb ldr_data
Get ntdll base address
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
mov edx, dword [0x504e30]
call fcn.0040527c
xor eax, eax
push ebp
push 0x53e091
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00450ed4
mov byte [ebp - 0x39], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x53e05f
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x26c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x268]
mov eax, dword [ebp - 4]
call fcn.004c76c8
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x451]
cmp eax, dword [ebp - 0x10]
jg 0x53e05f
cmp dword [ebp - 0xc], 0
jl 0x53e05f
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0051d448
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00519b68
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x204]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x53d6d1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
cmp dword [eax + 0x1c], 0
je 0x53d6d1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0051d448
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00519b68
mov eax, dword [eax + 0xc4]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0xb4]
call fcn.0044bc9c
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, 0x38
call fcn.00404888
lea eax, [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0053b4ec
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea esi, [ebp - 0xc4]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x53e05f
mov eax, dword [0x5a224c]
mov eax, dword [eax]
call fcn.00459af0
test eax, eax
jne 0x53e05f
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x53e05f
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0053b4ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4ac]
cmp byte [eax + 4], 0
je 0x53d843
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x204]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x53d731
mov byte [ebp - 0x49], 1
jmp 0x53d735
mov byte [ebp - 0x49], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
sub eax, dword [ebp - 0x70]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2aa]
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x26c]
sub edx, dword [ebp - 0x6c]
call fcn.00407040
lea edx, [ebp - 0xcc]
mov cl, byte [ebp - 0x49]
mov eax, dword [ebp - 4]
call fcn.0054c8a8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x53e05f
cmp byte [ebp - 0x49], 0
je 0x53d7ca
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x154]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x150]
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0x158]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x154]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x150]
call fcn.00407024
jmp 0x53d80d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x154]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x160]
mov eax, dword [ebp - 0x14]
add ecx, dword [eax + 0x164]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x154]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x160]
call fcn.00407024
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
call fcn.00407154
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2aa]
neg edx
lea eax, [ebp - 0xb0]
xor ecx, ecx
call fcn.00407154
lea esi, [ebp - 0xb0]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x41]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x26c]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
sub eax, dword [ebp - 0x70]
call fcn.00407040
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x2b], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x354], 0
jne 0x53d88c
mov dl, 1
mov eax, dword [0x42a17c]
call fcn.0042b954
mov edx, dword [ebp - 4]
mov dword [edx + 0x354], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x53d8b2
mov eax, dword [ebp - 4]
call fcn.0044e56c
mov edx, eax
sub edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x70]
lea eax, [ebp - 0x70]
xor ecx, ecx
call fcn.00407154
mov eax, dword [ebp - 0x14]
call fcn.00514e20
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x204]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x53da41
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.00513978
test al, al
je 0x53da41
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.005139ec
cmp eax, 2
jle 0x53d926
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.005139ec
sub eax, 2
sub dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.005139ec
sub eax, 2
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x330]
cmp al, 1
jne 0x53d990
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0051d448
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54c]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
call fcn.004048cc
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x451]
mov edx, dword [ebp - 0x10]
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54c]
mov eax, dword [eax + edx*8]
mov edx, dword [ebp - 0x64]
sub edx, dword [eax + 0x10]
inc edx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
cmp eax, dword [ebp - 0x6c]
jl 0x53e05f
jmp 0x53d9a1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.00513024
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x330]
cmp al, 1
je 0x53d9cc
mov eax, dword [ebp - 4]
call fcn.00531430
test eax, eax
jne 0x53d9cc
mov eax, dword [ebp - 4]
call fcn.0053144c
test eax, eax
jne 0x53d9cc
xor eax, eax
jmp 0x53d9ce
mov al, 1
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.00512fbc
mov byte [ebp - 0x2b], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.0051305c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x354]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
call fcn.00513db0
cmp al, 1
jne 0x53de3e
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x70]
call fcn.00508cf4
jmp 0x53de3e
mov eax, dword [ebp - 4]
call fcn.00534140
and eax, 0xff
cmp eax, dword [ebp - 0xc]
jg 0x53dd3e
mov eax, dword [ebp - 4]
call fcn.005407e8
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00534140
and eax, 0xff
add ebx, eax
cmp ebx, dword [ebp - 0xc]
jle 0x53dd3e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
cmp byte [eax + 0x15], 0
je 0x53dd3e
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
cmp byte [eax + 9], 0
je 0x53dae1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x234]
cmp eax, dword [ebp - 0xc]
jne 0x53dae1
mov eax, dword [ebp - 4]
call fcn.00534140
and eax, 0xff
mov edx, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x50]
jle 0x53dae1
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
call fcn.00534140
and eax, 0xff
mov edx, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp - 4]
call fcn.00535310
xor eax, eax
push ebp
push 0x53dd37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e0]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
je 0x53db49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e0]
mov eax, dword [eax + 0x1c]
call fcn.00502c74
test eax, eax
jle 0x53db49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e4]
cmp byte [eax + 0x50], 1
jne 0x53db49
call fcn.004042a0
jmp 0x53e05f
mov byte [ebp - 0x39], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0x54]
lea edx, [eax + 8]
mov eax, dword [ebp - 4]
call fcn.0044e6ac
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
call fcn.00404834
lea esi, [ebp - 0x70]
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
mov dword [ebp - 0x90], eax
mov eax, dword [0x5a22b8]
mov eax, dword [eax]
mov edx, dword [eax + 0x80]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp word [eax + 0x3b2], 0
je 0x53dc27
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x41]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x39]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x268]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3b4]
call dword [ebx + 0x3b0]
cmp byte [ebp - 0x39], 0
jne 0x53dc72
cmp dword [ebp - 0x14], 0
je 0x53dc72
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x102], 0
je 0x53dc72
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x41]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x39]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x268]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x104]
call dword [ebx + pe_nt_image_headers32]
cmp byte [ebp - 0x39], 0
jne 0x53dca3
mov eax, dword [ebp - 0x14]
call fcn.00517870
test al, al
je 0x53dca3
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x268]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0053d150
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
lea edi, [eax + 0x18]
lea esi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xcc]
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
call fcn.0044e680
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0xcc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x98]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x58]
add eax, 0x38
mov edx, dword [ebp - 0x74]
call fcn.00404888
mov byte [ebp - 0x39], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53de3e
mov eax, dword [ebp - 4]
call fcn.0053540c
ret
mov eax, dword [ebp - 4]
call fcn.00531414
test eax, eax
jle 0x53e05f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
dec eax
cmp eax, dword [ebp - 0xc]
jge 0x53e05f
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x28c]
mov eax, dword [ebp - 0x14]
call fcn.0051792c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
call fcn.00544988
test al, al
je 0x53e05f
mov eax, dword [ebp - 0x38]
call fcn.005446ac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x354]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 0x31]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x38]
call fcn.0054464c
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x28c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x31c]
mov eax, dword [ebp - 0x38]
call fcn.0054467c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2b]
push eax
mov al, byte [0x53e0a0]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0051d448
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x28c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x2a0]
cmp byte [ebp - 0x39], 0
jne 0x53e03b
cmp byte [ebp - 0x29], 0
je 0x53de57
mov dword [ebp - 0x20], 2
jmp 0x53de5c
xor eax, eax
mov dword [ebp - 0x20], eax
cmp byte [ebp - 0x31], 0
je 0x53de76
mov eax, dword [ebp - 0x14]
call fcn.00515d78
add al, 0xfc
sub al, 2
jae 0x53de76
mov byte [ebp - 0x2a], 1
jmp 0x53deb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
mov al, byte [ebp - 0x29]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.00450ea8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x208]
mov ecx, dword [ebp - 0x20]
call fcn.00508d38
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x254], 0
je 0x53dec5
mov dword [ebp - 0x30], 2
jmp 0x53decc
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x5c], eax
cmp byte [ebp - 0x2a], 0
jne 0x53def4
cmp byte [ebp - 0x2b], 1
jne 0x53e030
mov eax, dword [ebp - 0x1c]
sub eax, 2
cmp eax, dword [ebp - 0x68]
jle 0x53e030
mov eax, dword [ebp - 0x5c]
add eax, 0x38
mov edx, dword [ebp - 0x28]
call fcn.00404888
mov eax, dword [ebp - 0x5c]
lea edi, [eax + 0x18]
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x2b]
sub al, 1
jb 0x53df21
je 0x53df50
dec al
je 0x53df82
jmp 0x53dfd0
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x70]
dec eax
call fcn.00407040
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xcc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0xc], edx
jmp 0x53dfd0
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 7
call fcn.00407040
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xcc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0xc], edx
jmp 0x53dfd0
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 6
mov edx, dword [ebp - 0x18]
sar edx, 1
jns 0x53df96
adc edx, 0
add eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x70]
sub edx, 4
sar edx, 1
jns 0x53dfa8
adc edx, 0
sub eax, edx
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x30]
call fcn.00407040
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xcc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x53dff0
mov eax, dword [ebp - 4]
call fcn.0044e56c
mov edx, dword [ebp - 0x5c]
sub eax, dword [edx + 8]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 8], eax
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0x5c]
lea edx, [eax + 8]
mov eax, dword [ebp - 4]
call fcn.0044e680
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xcc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc8]
mov dword [eax + 0xc], edx
cmp byte [ebp - 0x29], 0
je 0x53e03b
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x70]
sub eax, 4
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x10], eax
jmp 0x53e03b
mov eax, dword [ebp - 0x5c]
add eax, 0x38
call fcn.00404834
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [0x51aca8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
mov edx, dword [ebp - 0x60]
mov dword [edx + 0x3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e098
lea eax, [ebp - 0xb4]
call fcn.00404834
lea eax, [ebp - 0xa0]
mov edx, dword [0x504e30]
call fcn.0040534c
lea eax, [ebp - 0x28]
call fcn.00404834
ret