Function at 0x508160
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x58e385
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00416b40
add eax, 4
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
xor ebx, ebx
test eax, eax
je 0x5081d8
call fcn.00416b40
mov ecx, eax
call fcn.00402be0
test al, al
je 0x5081d8
call fcn.00416b40
mov ecx, dword [eax + 4]
add eax, 4
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.00416b40
mov ecx, eax
call fcn.00402bf0
cmp dword [0x5cea6c], ebx
mov dword [ebp - 0x24], ebx
je 0x5081f7
xor eax, eax
jmp 0x508f3a
push 2
mov dword [0x5cea6c], 1
call fcn.00444df0
mov ecx, eax
call fcn.005018d0
call fcn.00481be0
test eax, eax
jne 0x508ed2
mov edx, dword [esi + 0x40]
push ebx
push ebx
push 0x658
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x508ed2
mov dword [ebp - 0x10], 1
call fcn.00416b40
mov ecx, eax
call fcn.00414030
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x59c278
call fcn.0040dcb0
mov dword [ebp - 4], ebx
call fcn.00481f30
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004f08d0
lea edi, [esi + 0x44]
mov ecx, edi
call fcn.004326a0
test al, al
jne 0x508288
call fcn.0044aa90
jmp 0x508ed2
mov ecx, esi
call fcn.004f1d70
call fcn.0046c100
test al, al
je 0x508579
push 0x103
lea eax, [ebp + 0x14d]
push ebx
push eax
mov byte [ebp + 0x14c], 0
call fcn.00552500
add esp, 0xc
mov dword [ebp + 0x148], 0xf
mov dword [ebp + 0x144], ebx
mov byte [ebp + 0x134], 0
mov eax, dword [edi]
cmp eax, 0x650
mov dword [ebp - 4], 1
jne 0x5082f4
push 0x59a110
lea ecx, [ebp + 0x130]
call fcn.0040dd10
jmp 0x5083b2
cmp eax, 0xfc
jne 0x508310
push 0x59c274
lea ecx, [ebp + 0x130]
call fcn.0040dd10
jmp 0x5083b2
push 0x597698
lea ecx, [ebp - 0x8c]
call fcn.0040dcb0
mov edi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00501a40
push edi
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 3
call fcn.0040cec0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x50834f
mov eax, dword [eax + 4]
jmp 0x508352
add eax, 4
push eax
call fcn.0046eb90
mov ecx, eax
call fcn.0046cbd0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.004074a0
lea ecx, [ebp - 0x70]
call fcn.004074a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004074a0
cmp edi, ebx
jle 0x5083b2
push edi
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x5ce6d8
call fcn.0043bb60
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x130]
mov byte [ebp - 4], 5
call fcn.0040a080
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004074a0
cmp dword [ebp + 0x148], 0x10
mov eax, dword [ebp + 0x134]
jae 0x5083c7
lea eax, [ebp + 0x134]
push eax
lea eax, [ebp + 0x14c]
push 0x103
push eax
call fcn.0046eb90
mov ecx, eax
call fcn.0046e170
test eax, eax
jle 0x508427
lea ecx, [ebp + 0x14c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x508427
lea edx, [ebp + 0x14c]
lea edi, [esi + 0x20c]
push edx
mov ecx, edi
call fcn.0040dd10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.0040c140
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x38]
call edx
jmp 0x508567
push 0x597698
lea ecx, [ebp - 0x8c]
call fcn.0040dcb0
mov edi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00501a40
push edi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.0040cec0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 8
jb 0x508466
mov eax, dword [eax + 4]
jmp 0x508469
add eax, 4
push eax
call fcn.0046eb90
mov ecx, eax
call fcn.0046cbd0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.004074a0
lea ecx, [ebp - 0x70]
call fcn.004074a0
lea ecx, [ebp - 0x8c]
call fcn.004074a0
cmp edi, ebx
jle 0x508567
mov dword [ebp + 0x12c], 0xf
mov dword [ebp + 0x128], ebx
mov byte [ebp + 0x118], 0
lea ecx, [ebp + 0x114]
push edi
push ecx
mov byte [ebp - 4], 9
call fcn.0046eb90
mov ecx, eax
call fcn.0046ecf0
test al, al
je 0x50855a
cmp dword [ebp + 0x12c], 0x10
jb 0x5084e9
mov ebx, dword [ebp + 0x118]
test ebx, ebx
jne 0x5084ef
xor eax, eax
jmp 0x50851e
lea ebx, [ebp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x508507
xor eax, eax
jmp 0x50851e
lea eax, [edi + edi]
call fcn.00553150
mov eax, esp
push 0x3a8
push edi
push ebx
push eax
call fcn.00401140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50855a
push 0xffffffffffffffff
push 0
lea edx, [ebp + 0x114]
lea edi, [esi + 0x20c]
push edx
mov ecx, edi
call fcn.0040a080
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.0040c140
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x38]
call edx
lea ecx, [ebp + 0x114]
call fcn.004074a0
xor ebx, ebx
lea ecx, [ebp + 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.004074a0
lea ecx, [esi + 0x44]
call fcn.00439dd0
test al, al
jne 0x5085bb
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 8]
lea ecx, [esi + 0x38]
push ebx
call edx
test eax, eax
jne 0x508598
mov dword [ebp - 0x10], ebx
call fcn.0046c100
test al, al
je 0x5085b2
call fcn.00426240
cmp eax, 1
jne 0x5085b2
xor eax, eax
jmp 0x508f34
cmp dword [ebp - 0x10], ebx
je 0x508ed2
call fcn.00444df0
cmp byte [eax + 0x50], 0
je 0x508b9a
lea eax, [ebp - 0x54]
push eax
call fcn.00444df0
mov ecx, eax
call fcn.00462c80
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0x44]
push eax
push eax
push ecx
mov dword [ebp - 4], 0xa
call fcn.00444df0
mov ecx, eax
call fcn.00439240
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 0x140], eax
mov dword [ebp + 0x144], eax
mov dword [ebp + 0x148], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
lea edi, [ebp - 0x54]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
test edi, edi
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
je 0x508639
lea ecx, [ebp - 0x54]
cmp edi, ecx
je 0x50863e
call fcn.005532de
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x28]
je 0x508779
test edi, edi
jne 0x508653
call fcn.005532de
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 4]
jne 0x508660
call fcn.005532de
mov ecx, dword [ebp - 0x14]
cmp ebx, dword [ecx + 0xc]
lea ecx, [ebp - 0x18]
jne 0x508702
call fcn.00436d80
mov edx, dword [eax + 4]
push 1
push 3
lea ecx, [ebp + 0x1c8]
mov dword [ebp - 0x1c], edx
call fcn.00430200
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.00436d80
mov eax, dword [eax + 4]
push eax
push 0x59a400
push ebx
lea ecx, [ebp + 0x1d0]
push 0x59c260
push ecx
call fcn.00442aa0
add esp, 8
mov ecx, eax
call fcn.004435a0
push eax
call fcn.00442aa0
add esp, 8
mov ecx, eax
call fcn.004435a0
lea ecx, [ebp + 0x21c]
mov byte [ebp - 4], 0xb
call fcn.0042dc10
lea edx, [ebp + 0x21c]
push edx
mov dword [ebp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0055177f
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.00433da0
mov edi, dword [ebp - 0x18]
jmp 0x508628
call fcn.00436d80
cmp dword [eax + 4], 2
jne 0x508769
lea ecx, [ebp - 0x18]
call fcn.00436d80
push eax
lea ecx, [ebp + 0x13c]
call fcn.004140f0
push 1
push 3
lea ecx, [ebp + 0x1c8]
call fcn.00430200
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.00436d80
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x1d0]
push 0x59c24c
push ecx
call fcn.00442aa0
add esp, 8
mov ecx, eax
call fcn.004435a0
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0xb
call fcn.0042e080
lea ecx, [ebp - 0x18]
call fcn.00433da0
mov edi, dword [ebp - 0x18]
jmp 0x508628
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x508a15
cmp eax, 4
je 0x508a15
cmp eax, 2
jne 0x5088a2
push 1
push 3
lea ecx, [ebp + 0x1c8]
call fcn.00430200
push ebx
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x5ce6d8
mov byte [ebp - 4], 0x14
call fcn.0043bb60
push 0x59c22c
push eax
lea eax, [ebp + 0x1d0]
push eax
mov byte [ebp - 4], 0x15
call fcn.0042f7c0
add esp, 8
push eax
call fcn.00442aa0
add esp, 8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.004074a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x59c220
call fcn.0040dcb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x59648b
mov byte [ebp - 4], 0x16
call fcn.0040dcb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push ecx
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0x17
call fcn.0042edc0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x59c214
mov byte [ebp - 4], 0x18
call fcn.0040dcb0
lea ecx, [ebp]
mov byte [ebp - 4], 0x14
call fcn.004587c0
fldz
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov byte [ebp - 4], 0x19
call fcn.00454520
mov ecx, eax
call fcn.004c7590
mov edx, dword [esi + 0x40]
push edx
call fcn.004a13d0
mov eax, dword [esi + 4]
add esp, 4
push 0
push eax
lea ecx, [ebp]
call fcn.00456e60
lea ecx, [ebp]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x14
call fcn.00455b40
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0xb
call fcn.0042e080
jmp 0x508b62
lea ecx, [ebp + 0x13c]
call fcn.0044b110
test al, al
jne 0x508b62
push 1
push 3
lea ecx, [ebp + 0x1c8]
call fcn.00430200
mov bl, 0x1a
push 0
lea ecx, [ebp + 0x13c]
mov byte [ebp - 4], bl
call fcn.0044b140
mov edx, dword [ebp + 0x140]
test edx, edx
mov ecx, dword [eax]
je 0x5088f7
mov eax, dword [ebp + 0x144]
sub eax, edx
sar eax, 2
cmp eax, 1
mov edi, 0x59c20c
jg 0x5088fc
mov edi, 0x59648b
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, 0x5ce6d8
call fcn.0043bb60
push 0x5978ec
push edi
push eax
lea edx, [ebp + 0x1d0]
push 0x59c1e0
push edx
mov byte [ebp - 4], 0x1b
call fcn.00442aa0
add esp, 8
push eax
call fcn.0042f7c0
add esp, 8
push eax
call fcn.00442aa0
add esp, 8
push eax
call fcn.00442aa0
add esp, 8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004074a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x59c1d0
call fcn.0040dcb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x59c1c4
mov byte [ebp - 4], 0x1c
call fcn.0040dcb0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0x1d
call fcn.0042edc0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x59c214
mov byte [ebp - 4], 0x1e
call fcn.0040dcb0
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.004587c0
fldz
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov byte [ebp - 4], 0x1f
call fcn.00454520
mov ecx, eax
call fcn.004c7590
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004a13d0
mov edx, dword [esi + 4]
add esp, 4
push 0
push edx
lea ecx, [ebp]
call fcn.00456e60
cmp eax, 0x3eb
je 0x5089ef
cmp eax, 8
jne 0x5089f6
mov dword [ebp - 0x10], 0
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.00455b40
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0xb
call fcn.0042e080
jmp 0x508b62
push 1
push 3
lea ecx, [ebp + 0x1c8]
call fcn.00430200
push ebx
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x5ce6d8
mov byte [ebp - 4], 0xe
call fcn.0043bb60
push 0x59c19c
push eax
lea ecx, [ebp + 0x1d0]
push ecx
mov byte [ebp - 4], 0xf
call fcn.0042f7c0
add esp, 8
push eax
call fcn.00442aa0
add esp, 8
cmp dword [ebp - 0x58], 0x10
mov byte [ebp - 4], 0xe
jb 0x508a6f
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0055215c
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x59c190
call fcn.0040dcb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x59c1c4
mov byte [ebp - 4], 0x10
call fcn.0040dcb0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
lea ecx, [ebp + 0x1c8]
mov byte [ebp - 4], 0x11
call fcn.0042edc0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x59c214
mov byte [ebp - 4], 0x12
call fcn.0040dcb0
lea ecx, [ebp]
mov byte [ebp - 4], 0xe
call fcn.004587c0
fldz
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov byte [ebp - 4], 0x13
call fcn.00454520
mov ecx, eax
call fcn.004c7590
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004a13d0
mov edx, dword [esi + 4]
add esp, 4
push 0
push edx
lea ecx, [ebp]
call fcn.00456e60
cmp eax, 0x3eb
je 0x508b0f
cmp eax, 8
jne 0x508b2e
cmp eax, 0x3eb
mov dword [ebp - 0x10], 0
jne 0x508b2e
mov eax, dword [esi + 0x40]
push ebx
push eax
call fcn.00444df0
mov ecx, eax
call fcn.0045b600
lea ecx, [ebp]
mov byte [ebp - 4], 0xe
call fcn.00455b40
lea ecx, [ebp + 0x21c]
mov byte [ebp - 4], 0xb
call fcn.0042dc10
lea ecx, [ebp + 0x21c]
push ecx
mov dword [ebp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0055177f
add esp, 4
mov eax, dword [ebp + 0x140]
xor edi, edi
cmp eax, edi
je 0x508b77
push eax
call fcn.0055215c
add esp, 4
lea ecx, [ebp - 0x54]
mov dword [ebp + 0x140], edi
mov dword [ebp + 0x144], edi
mov dword [ebp + 0x148], edi
mov dword [ebp - 4], 0xffffffff
call fcn.00441050
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x508ed2
mov edi, dword [ebp + 0x25c]
cmp edi, 5
je 0x508bf4
cmp edi, 8
je 0x508bf4
cmp byte [0x5cb680], 0
je 0x508bf4
push 3
lea ecx, [ebp + 0x1f4]
call fcn.00470b00
lea ecx, [ebp + 0x1f4]
mov dword [ebp - 4], 0x20
call fcn.00470e80
lea ecx, [ebp + 0x1f4]
mov byte [0x5cb680], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00470cb0
xor eax, eax
mov dword [esi + 0x2bc], edi
push 0x71a80
mov dword [ebp - 0x10], eax
mov dword [0x5ce9d8], eax
call fcn.004b9d30
push 0x71a81
call fcn.004b9d40
sub esp, 0x14
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x59c18c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x59c188
mov dword [ebp - 0x24], eax
call fcn.0040dcb0
lea edx, [ebp - 0x48]
push edx
lea ecx, [esi + 0xcc]
call fcn.004c2a60
mov edi, eax
push 0x59c17c
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x21
call fcn.0040dcb0
lea ecx, [esi + 0x4c]
push ecx
push eax
lea edx, [ebp - 0x8c]
push edx
mov byte [ebp - 4], 0x22
call fcn.0040cf70
push 0x59c178
push eax
lea eax, [ebp + 0x130]
push eax
mov byte [ebp - 4], 0x23
call fcn.0040cf70
push edi
push eax
lea ecx, [ebp + 0x114]
push ecx
mov byte [ebp - 4], 0x24
call fcn.0040cec0
add esp, 0x24
push eax
mov eax, dword [ebp - 0x24]
mov bl, 0x25
push eax
mov byte [ebp - 4], bl
call fcn.0040cf70
add esp, 0xc
mov byte [ebp - 4], 0x26
call fcn.00481f30
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004f08d0
cmp dword [ebp + 0x12c], 0x10
jb 0x508cdc
mov edx, dword [ebp + 0x118]
push edx
call fcn.0055215c
add esp, 4
xor ebx, ebx
mov edi, 0x10
cmp dword [ebp + 0x148], edi
mov dword [ebp + 0x12c], 0xf
mov dword [ebp + 0x128], ebx
mov byte [ebp + 0x118], bl
jb 0x508d10
mov eax, dword [ebp + 0x134]
push eax
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x74], edi
mov dword [ebp + 0x148], 0xf
mov dword [ebp + 0x144], ebx
mov byte [ebp + 0x134], 0
jb 0x508d3b
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x88], 0
jb 0x508d5d
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [ebp - 0x30], edi
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
jb 0x508d83
mov eax, dword [ebp - 0x44]
push eax
call fcn.0055215c
add esp, 4
push ebx
call fcn.00444df0
mov ecx, eax
call fcn.005019b0
mov edx, dword [ebp + 0x25c]
lea ecx, [ebp - 0x10]
push ecx
push edx
lea eax, [esi + 0x44]
push eax
call fcn.00482210
add esp, 0xc
mov edi, eax
mov eax, dword [0x5ce6d4]
push str.start_js
push eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x508dc3
call eax
cmp edi, ebx
jne 0x508f32
push 0x59c160
lea ecx, [ebp + 0x114]
call fcn.0040dcb0
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0x27
je 0x508e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x5ce6d8
call fcn.00507540
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x114]
mov byte [ebp - 4], 0x28
call fcn.0040a080
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x27
call fcn.004074a0
push ebx
call fcn.00444df0
mov ecx, eax
call fcn.005018d0
push 0x59c154
lea ecx, [ebp - 0x48]
call fcn.0040dcb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp + 0x114]
push edx
push eax
mov bl, 0x29
push ecx
mov byte [ebp - 4], bl
call fcn.0040cec0
add esp, 0xc
mov byte [ebp - 4], 0x2a
call fcn.00481f30
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004f08d0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x27
call fcn.004074a0
fldz
push ecx
fstp dword [esp]
push 0xffffffffffffffff
call fcn.00454520
mov ecx, eax
call fcn.004c7590
mov eax, dword [esi + 0x40]
push eax
call fcn.004a13d0
mov ecx, dword [ebp + 0x118]
add esp, 4
cmp dword [ebp + 0x12c], 0x10
jae 0x508eab
lea ecx, [ebp + 0x118]
mov edx, dword [esi + 4]
push 0x10
push edx
mov edx, 0x59c148
call fcn.00505110
add esp, 8
lea ecx, [ebp + 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.004074a0
xor ebx, ebx
call fcn.00454520
mov esi, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x508f00
mov edx, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 0x1c]
sete al
test al, al
jne 0x508f10
cmp dword [esi], ebx
jne 0x508f09
cmp dword [esi + 4], ebx
je 0x508f20
mov dword [esi], ebx
mov dword [esi + 4], ebx
jmp 0x508f20
mov ecx, dword [esi]
push ebx
push ebx
push 0x2b11
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call fcn.00444df0
mov ecx, eax
call fcn.005018d0
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, edi
mov dword [0x5cea6c], ebx
lea esp, [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x254
mov esp, ebp
pop ebp
ret 4