Function at 0x514c40
Capabilities:
Check if file exists
Get file attributes
Get file system object information
Get geographical location
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x65a138
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x304], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.004024f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004024f0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
wait
mov ecx, esi
call fcn.005f6b34
push 0x444
push esi
lea ecx, [esi + 0x1d8]
call fcn.004012a0
lea ecx, [esi + 0x1e8]
push 0x4d8
push esi
call fcn.004012a0
push 0x4d9
push esi
lea ecx, [esi + 0x1f8]
call fcn.004012a0
push 0x48c
push esi
lea ecx, [esi + 0x208]
call fcn.004012a0
lea ecx, [esi + 0x218]
push 0x43a
push esi
call fcn.004012a0
lea ecx, [esi + 0x228]
push 0x6c6
push esi
call fcn.004012a0
push 1
mov eax, dword [esi + 0x238]
push eax
mov ecx, esi
call fcn.004015e0
push 0
mov ecx, dword [esi + 0x238]
push ecx
mov ecx, esi
call fcn.004015e0
push 1
mov ecx, esi
call fcn.005ff1b3
lea edx, [ebp - 0x58]
push edx
mov eax, dword [esi + 0xa8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, esi
call fcn.005fdc97
lea ebx, [esi + 0x88]
push 0
mov ecx, ebx
call fcn.005f5caa
mov edx, dword [0x752d28]
mov dword [esi + 0x24c], edx
call fcn.005fd5a3
mov eax, dword [eax + 8]
push 0
push eax
push 0
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
sub edx, ecx
push edx
push eax
push ecx
push 0x50010880
push 0
push str.EDIT
push 0x200
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
call edi
mov dword [esi + 0x240], eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [esi + 0x150]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x58]
push edx
mov ecx, esi
call fcn.005fdc97
lea ecx, [esi + 0x130]
push 0
call fcn.005f5caa
call fcn.005fd5a3
mov eax, dword [eax + 8]
push 0
push eax
push 0
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
sub edx, ecx
push edx
push eax
push ecx
push 0x50010080
push 0
push str.EDIT
push 0x200
call edi
mov dword [esi + 0x244], eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [esi + 0x1a4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x58]
push edx
mov ecx, esi
call fcn.005fdc97
lea ecx, [esi + 0x184]
push 0
call fcn.005f5caa
call fcn.005fd5a3
mov eax, dword [eax + 8]
push 0
push eax
push 0
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
sub edx, ecx
push edx
push eax
push ecx
push 0x50010080
push 0
push str.EDIT
push 0x200
call edi
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x240]
test eax, eax
je 0x514e9e
push 0x213
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
call edi
jmp 0x514ec5
mov dword [esi + 0x24c], 0
mov eax, dword [esi + 0xa8]
mov dword [esi + 0x240], eax
push 5
mov ecx, ebx
call fcn.005f5caa
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
mov eax, dword [esi + 0x248]
cmp eax, ebx
je 0x514ee4
push 0x213
push ebx
push ebx
push ebx
push ebx
mov ecx, dword [esi + 0x21c]
push ecx
push eax
call edi
jmp 0x514f03
mov dword [esi + 0x24c], ebx
mov edx, dword [esi + 0x1a4]
mov dword [esi + 0x248], edx
push 5
lea ecx, [esi + 0x184]
call fcn.005f5caa
mov eax, dword [esi + 0x244]
cmp eax, ebx
je 0x514f22
push 0x213
push ebx
push ebx
push ebx
push ebx
mov ecx, dword [esi + 0x248]
push ecx
push eax
call edi
jmp 0x514f41
mov dword [esi + 0x24c], ebx
mov edx, dword [esi + 0x150]
mov dword [esi + 0x244], edx
push 5
lea ecx, [esi + 0x130]
call fcn.005f5caa
push esi
call fcn.0045bf70
add esp, 4
cmp dword [0x75dd30], ebx
je 0x514f62
push 0x87
push esi
mov ecx, 0x75dcf0
call fcn.004e6a60
mov dword [ebp + 0x2d8], ebx
mov dword [ebp + 0x2e0], ebx
xor eax, eax
mov word [ebp + 0x2dc], ax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x2d8]
push ecx
mov ecx, dword [esi + 0x74]
call fcn.005b9000
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x4f8]
push edx
lea ecx, [eax + 0x20]
call fcn.005d0ee0
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 0x20]
push str.googlevideo.com
push eax
call fcn.00622230
add esp, 8
test eax, eax
je 0x514fbe
mov ecx, dword [esi + 0x74]
mov byte [ecx + 0x1b1], 1
mov eax, dword [ebp + 0x2d8]
cmp dword [esi + 0x24c], ebx
je 0x515068
cmp eax, ebx
jne 0x514fda
lea eax, [ebp + 0x2dc]
push eax
push 0x439
mov edx, dword [esi + 0x20]
push edx
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
call edi
mov eax, dword [ebp + 0x2d8]
cmp eax, ebx
jne 0x514ffc
lea eax, [ebp + 0x2dc]
push 0x510
push 0x2b4
lea ecx, [ebp]
push ecx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
mov eax, dword [esi + 0x20]
je 0x51504e
lea edx, [ebp + 0x214]
push edx
push 0x445
push eax
call edi
push 0x446
mov ecx, esi
call fcn.005f5a75
push ebx
mov ecx, dword [ebp]
push ecx
push 0x170
mov ecx, eax
call fcn.004015a0
jmp 0x51510d
mov edx, dword [0x75ee48]
push edx
push 0x445
push eax
call fcn.004245a0
add esp, 0xc
jmp 0x51510d
cmp eax, ebx
jne 0x515072
lea eax, [ebp + 0x2dc]
push ebx
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402a60
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
push edx
push 0x439
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x510
push 0x160
lea ecx, [ebp + 0x154]
push ecx
push 0x80
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x5150f0
lea eax, [ebp + 0x264]
push eax
push 0x445
call fcn.005f5af2
push 0x446
mov ecx, esi
call fcn.005f5a75
push ebx
mov ecx, dword [ebp + 0x154]
push ecx
push 0x170
mov ecx, eax
call fcn.004015a0
jmp 0x515101
mov edx, dword [0x75ee48]
push edx
push 0x445
call fcn.005f5af2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402560
mov ecx, dword [esi + 0x74]
mov edi, dword [ecx + 0x500]
mov eax, dword [ecx + 0x504]
mov edx, edi
or edx, eax
je 0x51512a
mov dword [ebp + 0x300], eax
jmp 0x51513c
mov edi, dword [ecx + 0x110]
mov eax, dword [ecx + 0x114]
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x2fc], edi
cmp eax, ebx
jl 0x515196
jg 0x51514c
cmp edi, ebx
jbe 0x515196
mov ebx, vtable.StringConvertor.0
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
push ecx
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.0043f860
mov edx, dword [0x75f0e4]
push edx
mov eax, dword [ebp + 0x300]
push eax
push edi
mov ecx, dword [ebp - 0x5c]
push ecx
push str._s___I64d__s_
lea edx, [ebp - 0x24]
push edx
call fcn.00402f60
add esp, 0x18
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], ebx
jmp 0x5152b4
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x5151ab
cmp eax, 5
je 0x5151ab
cmp dword [ecx + 0x354], ebx
je 0x5151d0
lea edx, [ecx + 0x3d8]
fldz
fcom qword [edx]
fnstsw ax
test ah, 5
jnp 0x5151ec
cmp dword [ecx + 0x40c], ebx
jg 0x5151ec
jl 0x5151ce
cmp dword [ecx + 0x408], ebx
ja 0x5151ec
fstp st(0)
mov eax, dword [0x75ee48]
push eax
push 0x678ea8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f60
add esp, 0xc
jmp 0x5152b4
fcomp qword [edx]
fnstsw ax
test ah, 5
jp 0x515200
fld qword [edx]
call fcn.00622e26
mov edi, eax
jmp 0x51520c
mov edi, dword [ecx + 0x408]
mov edx, dword [ecx + 0x40c]
mov dword [ebp - 0x3c], edx
test edx, edx
jl 0x5152b4
jg 0x515221
test edi, edi
jbe 0x5152b4
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 6
mov ebx, vtable.StringConvertor.0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0043fa40
mov edx, dword [ebp - 0x1c]
push edx
push 0x678ea8
lea eax, [ebp - 0x24]
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 8
mov ecx, dword [0x75f554]
push ecx
push 0x6a4594
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
mov eax, dword [ebp - 0x18]
push eax
push 0x52c
mov ecx, dword [esi + 0x20]
push ecx
call fcn.004245a0
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov edx, dword [ebp - 0x24]
push edx
push 0x447
mov eax, dword [esi + 0x20]
push eax
call fcn.004245a0
add esp, 0xc
mov ecx, dword [esi + 0x74]
cmp dword [ecx + 0x954], 3
jne 0x5152f4
mov ecx, dword [0x75ef3c]
push ecx
push 0x678ea8
lea edx, [ebp - 0x24]
push edx
call fcn.00402f60
add esp, 0xc
xor ebx, ebx
jmp 0x51544b
lea eax, [ecx + 0x508]
mov edx, dword [eax]
xor ebx, ebx
or edx, dword [eax + 4]
je 0x51538c
cmp dword [ebp + 0x300], ebx
jl 0x51538c
jg 0x515319
cmp dword [ebp + 0x2fc], ebx
jbe 0x51538c
fild qword [eax]
fmul qword [0x6828a0]
fild qword [ebp + 0x2fc]
fdivp st(1)
fstp dword [ebp - 0x14]
push 3
lea eax, [ebp - 0x18]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x51534c
mov ecx, 0x2c
mov word [ebp - 0x18], cx
fld dword [ebp - 0x14]
fld st(0)
call fcn.00622df0
mov edi, eax
mov dword [ebp - 0x14], edi
mov edx, dword [0x75efa4]
push edx
fisub dword [ebp - 0x14]
fmul qword [0x6828a0]
call fcn.00622df0
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str._d_s_02d____s
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f60
add esp, 0x18
jmp 0x51544b
mov eax, dword [ecx + 0x44]
cmp eax, 4
je 0x5153a5
cmp eax, 5
je 0x5153a5
cmp dword [ecx + 0x354], ebx
je 0x515434
fldz
fcom qword [ecx + 0x518]
fnstsw ax
test ah, 5
jp 0x515432
fcomp qword [ecx + 0x3d8]
fnstsw ax
test ah, 5
jp 0x515434
push 8
lea edx, [ebp + 0x2fc]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x5153e7
mov eax, 0x2c
mov word [ebp + 0x2fc], ax
mov eax, dword [esi + 0x74]
fld qword [eax + 0x518]
fld qword [0x6828a0]
fmul st(1), st(0)
fxch st(1)
fdiv qword [eax + 0x3d8]
fld st(0)
call fcn.00622df0
mov edi, eax
mov dword [ebp - 0x14], edi
fisub dword [ebp - 0x14]
fmulp st(1)
call fcn.00622df0
push eax
lea ecx, [ebp + 0x2fc]
push ecx
push edi
push 0x686350
lea edx, [ebp - 0x24]
push edx
call fcn.00402f60
add esp, 0x14
jmp 0x51544b
fstp st(0)
mov eax, dword [0x75ee48]
push eax
push 0x678ea8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
push 0x44a
mov eax, dword [esi + 0x20]
push eax
call fcn.004245a0
add esp, 0xc
mov eax, dword [esi + 0x74]
cmp dword [eax + 0x5c], ebx
je 0x5154ec
cmp dword [esi + 0x24c], ebx
je 0x51549f
cmp dword [eax + 0x54], ebx
je 0x51548c
mov eax, dword [eax + 0x54]
push eax
mov ecx, dword [esi + 0x240]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x5154db
add eax, 0x58
push eax
mov ecx, dword [esi + 0x240]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x5154db
cmp dword [eax + 0x54], ebx
je 0x5154a9
mov eax, dword [eax + 0x54]
jmp 0x5154ac
add eax, 0x58
push ebx
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402a60
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0x240]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00402560
push ebx
push ebx
push 7
mov edx, dword [esi + 0x240]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [ebp + 0x2e4], ebx
mov dword [ebp + 0x2ec], ebx
xor eax, eax
mov word [ebp + 0x2e8], ax
mov byte [ebp - 4], 0xa
push ebx
push ebx
lea ecx, [ebp + 0x2e4]
push ecx
mov ecx, dword [esi + 0x74]
add ecx, 0x20
call fcn.00591de0
mov eax, dword [ebp + 0x2e4]
cmp eax, ebx
jne 0x51552f
lea eax, [ebp + 0x2e8]
push eax
lea ecx, [esi + 0x250]
call fcn.004017e0
mov eax, dword [ebp + 0x2e4]
cmp dword [esi + 0x24c], ebx
je 0x5155d0
mov edx, dword [esi + 0x74]
cmp byte [edx + 0x1b1], 0
je 0x5155b6
cmp eax, ebx
jne 0x515563
lea eax, [ebp + 0x2e8]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402a60
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [esi + 0x74]
add ecx, 0x20
call fcn.005ce500
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x248]
push ecx
call edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
jmp 0x51560f
cmp eax, ebx
jne 0x5155c0
lea eax, [ebp + 0x2e8]
push eax
mov edx, dword [esi + 0x248]
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x515614
cmp eax, ebx
jne 0x5155da
lea eax, [ebp + 0x2e8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402a60
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x248]
push edx
call edi
lea ecx, [esi + 0x25c]
lea eax, [ebp - 0x1c]
push eax
call fcn.00405900
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov ecx, dword [esi + 0x74]
cmp dword [ecx + 0x60], ebx
je 0x5156c9
mov dword [ebp + 0x2cc], ebx
mov dword [ebp + 0x2d4], ebx
xor edx, edx
mov word [ebp + 0x2d0], dx
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x74]
movzx ecx, byte [eax + 0x362]
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
mov edx, dword [eax + 0x60]
push edx
lea ecx, [ebp + 0x2cc]
call fcn.00401970
mov eax, dword [ebp + 0x2cc]
cmp dword [esi + 0x24c], ebx
je 0x515685
cmp eax, ebx
jne 0x515675
lea eax, [ebp + 0x2d0]
push eax
mov eax, dword [esi + 0x244]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x5156ba
cmp eax, ebx
jne 0x51568f
lea eax, [ebp + 0x2d0]
push ebx
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402a60
add esp, 0xc
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [esi + 0x244]
push eax
call edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2cc]
call fcn.00401210
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x38]
cmp ecx, ebx
je 0x5156e8
cmp byte [eax + 0x372], 0
jne 0x5156e8
push ecx
lea ecx, [esi + 0xdc]
call fcn.005f5bdf
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + 0x138]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5156f4
sub eax, edx
je 0x51585a
mov ebx, 8
mov dword [ebp - 0x38], ebx
xor edi, edi
cmp dword [0x75ddc8], edi
je 0x5157ac
fld qword [0x678e70]
fld qword [0x752d60]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x515737
fstp st(0)
lea ebx, [edi + 0x10]
jmp 0x5157a9
fld qword [0x678e68]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x51574f
fstp st(0)
mov ebx, 0xe
jmp 0x5157a9
fld qword [0x678e60]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x515767
fstp st(0)
mov ebx, 0xc
jmp 0x5157a9
fld qword [0x678e58]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x51577f
fstp st(0)
mov ebx, 0xb
jmp 0x5157a9
fld qword [0x678e50]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x515797
fstp st(0)
mov ebx, 0xa
jmp 0x5157a9
fcomp qword [0x678e48]
fnstsw ax
test ah, 0x41
jne 0x5157ac
mov ebx, 9
mov dword [ebp - 0x38], ebx
mov ecx, esi
call fcn.004015c0
push 0x5a
mov edx, dword [eax + 8]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x678e3c
push 0x20
push edi
push edi
push edi
push edi
push edi
push 1
push edi
push edi
push edi
push edi
push edi
push 0x48
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
cmp eax, edi
je 0x5157fb
push 1
push eax
push 0x30
mov eax, dword [esi + 0x22c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c8], edi
xor ecx, ecx
mov word [ebp + 0x2c4], cx
mov byte [ebp - 4], 0x10
mov edx, dword [esi + 0x74]
mov eax, dword [edx + 0x138]
lea ecx, [ebp + 0x2c0]
push ecx
push eax
call fcn.004c9420
add esp, 8
mov eax, dword [ebp + 0x2c0]
cmp eax, edi
jne 0x51583d
lea eax, [ebp + 0x2c4]
push eax
lea ecx, [esi + 0x228]
call fcn.004b85d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2c0]
call fcn.00401210
jmp 0x515875
mov edx, dword [0x75ee48]
push edx
lea ecx, [esi + 0x228]
call fcn.00424420
mov byte [esi + 0x23d], 0
xor edi, edi
mov byte [ebp - 0x1d], 1
mov ebx, dword [esi + 0x74]
mov eax, dword [ebx + 0x2c]
cmp eax, edi
je 0x51593f
cmp dword [ebx + 0x44], edi
je 0x5158c9
mov ecx, str.anonymous
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5158b1
test dl, dl
je 0x5158ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5158b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x515891
xor eax, eax
jmp 0x5158b6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x5158c9
cmp byte [ebx + 0x1d0], 0
jne 0x5158c9
mov byte [ebp - 0x1d], 0
jmp 0x51593f
mov dword [ebp + 0x2b4], edi
mov dword [ebp + 0x2bc], edi
xor eax, eax
mov word [ebp + 0x2b8], ax
mov byte [ebp - 4], 0x11
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 0x2c]
push edx
call fcn.005b84b0
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfde9
push eax
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 0x2c]
push edx
lea ecx, [ebp + 0x2b4]
call fcn.00401970
mov eax, dword [ebp + 0x2b4]
cmp eax, edi
jne 0x515920
lea eax, [ebp + 0x2b8]
push eax
push 0x409
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2b4]
call fcn.00401210
mov ecx, dword [esi + 0x74]
cmp dword [ecx + 0x30], edi
je 0x5159c4
cmp byte [ebp - 0x1d], 0
je 0x5159c4
mov dword [ebp + 0x2f0], edi
mov dword [ebp + 0x2f8], edi
xor edx, edx
mov word [ebp + 0x2f4], dx
mov byte [ebp - 4], 0x12
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.005b84b0
add esp, 4
movzx edx, al
neg edx
sbb edx, edx
and edx, 0xfde9
push edx
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x30]
push ecx
lea ecx, [ebp + 0x2f0]
call fcn.00401970
mov eax, dword [ebp + 0x2f0]
cmp eax, edi
jne 0x5159a5
lea eax, [ebp + 0x2f4]
push eax
push 0x411
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2f0]
call fcn.00401210
mov eax, dword [esi + 0x74]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [eax + 0x954], 5
jne 0x5159e0
push edi
mov ecx, dword [esi + 0x21c]
push ecx
jmp 0x515a1b
push 1
mov edx, dword [esi + 0x21c]
push edx
call ebx
mov eax, dword [esi + 0x74]
cmp dword [eax + 0x954], 3
jne 0x515a1d
cmp dword [0x752d28], edi
je 0x515a13
mov ecx, dword [0x75f68c]
push ecx
lea ecx, [esi + 0x218]
call fcn.00424420
jmp 0x515a1d
push edi
mov edx, dword [esi + 0x21c]
push edx
call ebx
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20c]
cmp dword [eax + 0x954], 3
jne 0x515b2a
push 1
push ecx
call ebx
mov dword [ebp - 0x60], edi
cmp dword [0x75dbac], edi
je 0x515a6b
mov eax, dword [esi + 0x74]
add eax, 0x54
cmp dword [eax], edi
je 0x515a51
mov eax, dword [eax]
jmp 0x515a54
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x515a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x515aa5
mov eax, dword [esi + 0x74]
add eax, 0x54
cmp dword [eax], edi
je 0x515a79
mov eax, dword [eax]
jmp 0x515a7c
add eax, 4
push edi
push eax
call fcn.004ab900
add esp, 8
test eax, eax
jne 0x515e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x515aa5
cmp dword [0x75dbac], edi
je 0x515e55
mov dword [ebp - 0x60], 1
mov edx, dword [0x75dd28]
push edx
mov eax, dword [0x75ec40]
push eax
lea ecx, [ebp + 0x2f0]
call fcn.0045eea0
mov byte [ebp - 4], 0x13
cmp dword [esi + 0x24c], edi
je 0x515b02
mov eax, dword [ebp + 0x2f0]
cmp eax, edi
jne 0x515ae0
lea eax, [ebp + 0x2f4]
push eax
mov ecx, dword [esi + 0x240]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2f0]
call fcn.00401210
jmp 0x515e55
mov edx, dword [0x75ec40]
push edx
mov eax, dword [esi + 0x240]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x2f0]
call fcn.00401210
jmp 0x515e55
push edi
push ecx
call ebx
mov edx, dword [esi + 0x74]
cmp dword [edx + 0xc8], edi
je 0x515e55
push 0x75ee60
lea ecx, [ebp - 0x3c]
call fcn.004027e0
mov byte [ebp - 4], 0x14
mov eax, dword [esi + 0x74]
lea edx, [eax + 0x64]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515b60
sub eax, edi
je 0x515b74
push edx
lea ecx, [ebp - 0x3c]
call fcn.00403060
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [esi + 0x1e8]
call fcn.00424420
push 0x75ee64
lea ecx, [ebp - 0x1c]
call fcn.004027e0
mov byte [ebp - 4], 0x15
xor edi, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x64], 0xd
mov dword [ebp - 0x44], edi
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 0xc8]
mov eax, edx
lea ebx, [eax + 1]
mov dword [ebp - 0x14], ebx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x515bb4
sub eax, dword [ebp - 0x14]
je 0x515d6d
cmp dword [esi + 0x24c], edi
je 0x515c74
mov ecx, edx
push ecx
lea ecx, [ebp + 0x2f0]
call fcn.004070a0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp + 0x2f0]
test eax, eax
je 0x515bf1
mov dword [ebp - 0x18], eax
jmp 0x515c00
lea edx, [ebp + 0x2f4]
mov dword [ebp - 0x18], edx
lea ebx, [ebx]
push 0xa
mov eax, dword [ebp - 0x18]
push eax
call fcn.00622700
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x515c3b
mov ecx, ebx
sub ecx, dword [ebp - 0x18]
sar ecx, 1
mov eax, 0x66666667
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edi, [edi + ecx + 1]
mov dword [ebp - 0x48], edi
add ebx, 2
mov dword [ebp - 0x18], ebx
jmp 0x515c00
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x515c41
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 6
lea edi, [edi + edx + 1]
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 0x15
lea ecx, [ebp + 0x2f0]
call fcn.00401210
jmp 0x515cd0
mov dword [ebp - 0x18], edx
push 0xa
mov edx, dword [ebp - 0x18]
push edx
call fcn.00622170
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x515cae
mov ecx, ebx
sub ecx, dword [ebp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [edi + eax + 1]
mov dword [ebp - 0x48], edi
inc ebx
mov dword [ebp - 0x18], ebx
jmp 0x515c77
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515cb4
sub eax, edx
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 6
lea edi, [edi + edx + 1]
mov dword [ebp - 0x48], edi
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 0xc8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403060
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [esi + 0x1fc]
push ecx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
call ebx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.005fdc97
mov ecx, dword [ebp - 0x28]
mov eax, ecx
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
imul eax, edi
add ecx, eax
mov dword [ebp - 0x28], ecx
lea ecx, [esi + 0x1f8]
push 1
lea eax, [ebp - 0x34]
push eax
call fcn.0040afd0
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [esi + 0x1f8]
call fcn.00424420
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
push edx
mov eax, dword [esi + 0x1fc]
push eax
call fcn.00514030
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
je 0x515d73
mov ecx, dword [ebp - 0x30]
mov edx, eax
add ecx, edx
mov dword [ebp - 0x28], ecx
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x1f8]
call fcn.0040afd0
jmp 0x515d73
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [esi + 0x1ec]
push edx
call ebx
cmp dword [ebp - 0x44], 0
je 0x515d8b
mov edi, dword [ebp - 0x44]
jmp 0x515d93
mov eax, dword [ebp - 0x64]
imul eax, edi
mov edi, eax
add edi, 0x2a
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push 0x20
mov edx, edi
mov eax, dword [ebp - 0x30]
sub edx, eax
add edx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub edx, ecx
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.005f5f3b
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [esi + 0x20c]
push ecx
call ebx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.005fdc97
add dword [ebp - 0x30], edi
add dword [ebp - 0x28], edi
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x208]
call fcn.0040afd0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [esi + 0x1dc]
push edx
call ebx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.005fdc97
add dword [ebp - 0x30], edi
add dword [ebp - 0x28], edi
push 1
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [esi + 0x1d8]
call fcn.0040afd0
push 5
mov edx, dword [esi + 0x1ec]
push edx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 5
mov eax, dword [esi + 0x1fc]
push eax
call edi
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3c]
call fcn.00402560
xor edi, edi
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + 0x954]
cmp eax, 3
je 0x515e74
cmp eax, 1
je 0x515e74
cmp eax, 5
je 0x515e74
mov eax, 1
jmp 0x515e76
xor eax, eax
mov dword [esi + 0x7c], eax
push edi
mov edx, dword [esi + 0x248]
cmp eax, edi
je 0x515ecc
push edi
push 0xcf
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0xcf
push 0x409
mov eax, dword [esi + 0x20]
push eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0xcf
push 0x411
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
jmp 0x515f16
push 1
push 0xcf
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 1
push 0xcf
push 0x409
mov eax, dword [esi + 0x20]
push eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 1
push 0xcf
push 0x411
mov ecx, dword [esi + 0x20]
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea ebx, [esi + 0xdc]
mov ecx, ebx
call fcn.00513fb0
mov edx, dword [esi + 0x74]
cmp byte [edx + 0x1b1], 0
je 0x515f44
push edi
push 1
push 0xcf
mov eax, dword [esi + 0x248]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [esi + 0x84], 0
je 0x515f56
push 1
mov ecx, ebx
call fcn.00513fb0
cmp byte [esi + 0x85], 0
je 0x515f74
push edi
push 1
push 0xcf
mov ecx, dword [esi + 0x248]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x2e4]
call fcn.00401210
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2d8]
call fcn.00401210
wait
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x515fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x515fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x308
mov esp, ebp
pop ebp
ret