Function at 0x499fe0
Capabilities:
Encode data using xor
Get file size
Parse pe header
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff2ab
mov eax, dword fs:[0]
push eax
sub esp, 0xe18
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0xe14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0xe2c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x64], 0
cmp dword [esp + 0xe40], edi
je 0x49a03e
mov byte [esp + 0x18], 1
mov byte [esp + 0x64], 1
mov ebx, dword [esp + 0xe3c]
push ebx
call fcn.0040a7a0
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
je 0x49a095
mov esi, eax
imul esi, esi, 0x6c
cmp byte [esp + 0x18], 0
mov ebp, dword [esi + 0x539720]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x918], 0
jne 0x49a09f
mov ecx, dword [0x548f00]
lea eax, [esp + 0x918]
push eax
push ebx
call fcn.00408840
test eax, eax
jne 0x49a174
mov eax, 2
jmp 0x49ba85
push ebx
push 8
call dword [0x548d20]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x49a0b9
mov eax, 0x19
jmp 0x49ba85
lea ecx, [esp + 0x6cc]
push ecx
push ebp
mov dword [esp + 0x6d4], 0x224
call dword [0x548d2c]
test eax, eax
je 0x49a133
jmp 0x49a0e0
lea edx, [esp + 0x6ec]
push 0x548f58
push edx
call fcn.004bab59
add esp, 8
test eax, eax
je 0x49a10e
lea eax, [esp + 0x6cc]
push eax
push ebp
call dword [0x548d30]
test eax, eax
jne 0x49a0e0
jmp 0x49a133
mov edi, dword [esp + 0x6e0]
mov dword [esp + 0x44], edi
xor eax, eax
jmp 0x49a120
mov cl, byte [esp + eax + 0x7ec]
mov byte [esp + eax + 0x918], cl
inc eax
test cl, cl
jne 0x49a120
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 0
jne 0x49a17c
push 0x521660
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
mov eax, dword [esp + 0xe4c]
sub eax, 0x50002
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x57
add eax, 0xd
jmp 0x49ba85
mov edi, dword [esi + 0x539764]
jmp 0x49a180
mov ebp, dword [esp + 0x38]
test edi, edi
jne 0x49a226
cmp byte [esp + 0x18], 0
jne 0x49a226
push ebp
call fcn.00439160
mov edi, eax
add esp, 4
test edi, edi
jne 0x49a220
push ebx
call fcn.00437810
mov edi, eax
test edi, edi
jne 0x49a220
lea ecx, [esp + 0x68]
push ecx
push 1
push 0x519670
mov dword [esp + 0x74], eax
call fcn.004045b0
add esp, 4
push eax
push edi
push 0x3e8
push ebp
push 0x51965c
call fcn.004045b0
add esp, 4
push eax
push edi
call 0x52d0b8
mov edi, eax
test edi, edi
je 0x49a1f3
lea edx, [edi + 0x1e3d0c4f]
cmp edx, 0xc
ja 0x49a220
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x521644
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov eax, 3
jmp 0x49ba85
mov dword [esi + 0x539764], edi
cmp dword [0x537c84], 0
je 0x49a234
call fcn.00492260
lea eax, [esp + 0x28]
push eax
push 0x40
lea ecx, [esp + 0x644]
push ecx
push edi
push ebp
call dword [0x5385e0]
test eax, eax
je 0x49ba80
cmp dword [esp + 0x28], 0x40
jne 0x49ba80
mov edx, 0x5a4d
cmp word [esp + 0x63c], dx
jne 0x49ba80
add edi, dword [esp + 0x678]
lea eax, [esp + 0x28]
push eax
push 0xf8
lea ecx, [esp + 0xa0]
push ecx
push edi
push ebp
call dword [0x5385e0]
xor ebx, ebx
cmp eax, ebx
je 0x49ba79
cmp dword [esp + 0x28], 0xf8
jne 0x49ba79
cmp dword [esp + 0x98], 0x4550
je 0x49a2bf
lea eax, [ebx + 6]
jmp 0x49ba85
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x521630
mov dword [esp + 0x4c], ebx
call fcn.00404690
add esp, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, dword [esp + 0x674]
cmp ecx, ebx
setne dl
mov dword [esp + 0x90], eax
mov byte [esp + 0x19], bl
test dl, dl
jne 0x49a3c8
cmp dword [0x548f04], ebx
je 0x49a3c8
cmp eax, ebx
je 0x49a3c8
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x49a3c1
push eax
call fcn.0043d1a0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49a3c1
push 0xff
lea eax, [esp + 0xa21]
push ebx
push eax
mov byte [esp + 0xa28], bl
call fcn.004b6dc0
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push 0x100
lea edx, [esp + 0xa24]
push edx
push 0x400500
push esi
mov dword [esp + 0x64], ebx
call dword [0x5385e0]
cmp eax, ebx
je 0x49a3ba
cmp dword [esp + 0x50], ebx
je 0x49a3ba
cmp byte [esp + 0xa1c], bl
je 0x49a3ba
lea eax, [esp + 0x918]
push eax
call fcn.00488e40
push eax
lea ecx, [esp + 0xa24]
push ecx
call fcn.004bab59
add esp, 0xc
test eax, eax
jne 0x49a3ba
mov byte [esp + 0x19], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x674]
mov eax, dword [esp + 0x664]
cmp eax, ebx
je 0x49a3dc
xor eax, 0x3833faf4
mov dword [esp + 0x48], eax
cmp dword [0x548f08], ebx
jne 0x49a3fa
mov ax, word [esp + 0x656]
cmp ax, bx
je 0x49a3fa
movzx edx, ax
mov dword [0x548f08], edx
mov eax, dword [esp + 0x670]
xor dl, dl
mov byte [esp + 0x1b], dl
cmp ecx, ebx
je 0x49a43a
cmp eax, ebx
je 0x49a43a
mov esi, dword [esp + 0x66c]
cmp esi, ebx
je 0x49a43a
cmp eax, ecx
jbe 0x49a424
mov edx, eax
sub edx, ecx
jmp 0x49a428
mov edx, ecx
sub edx, eax
cmp esi, edx
je 0x49a45d
cmp eax, ecx
jne 0x49a434
cmp esi, eax
je 0x49a45d
mov dl, 1
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x33], bl
test dl, dl
jne 0x49a4a3
cmp ecx, ebx
je 0x49a4a3
cmp eax, ebx
je 0x49a4a3
mov byte [esp + 0x1a], 1
cmp eax, ecx
jbe 0x49a487
mov edx, eax
sub edx, ecx
jmp 0x49a48b
mov eax, dword [esp + 0x40]
push eax
push 0x521618
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov eax, 0x64
jmp 0x49ba85
mov edx, ecx
sub edx, eax
mov esi, dword [esp + 0x668]
cmp esi, edx
je 0x49a49e
cmp eax, ecx
jne 0x49a4a3
cmp esi, eax
jne 0x49a4a3
mov byte [esp + 0x33], 1
lea ecx, [esp + 0x28]
push ecx
push 0x28
lea edx, [esp + 0x61c]
push edx
add edi, 0xf8
push edi
push ebp
mov byte [esp + 0x2b], bl
call dword [0x5385e0]
mov esi, dword [esp + 0x61c]
mov ecx, dword [esp + 0xd0]
xor edx, edx
mov eax, esi
div ecx
cmp edx, ebx
je 0x49a4e2
sub ecx, edx
add ecx, esi
mov esi, ecx
cmp esi, dword [esp + 0xb4]
je 0x49a58a
lea eax, [esp + 0x28]
push eax
push 0x28
lea ecx, [esp + 0x684]
push ecx
add edi, 0x28
push edi
push ebp
call dword [0x5385e0]
mov ecx, dword [esp + 0x684]
mov esi, dword [esp + 0xd0]
xor edx, edx
mov eax, ecx
div esi
cmp edx, ebx
je 0x49a525
sub ecx, edx
add ecx, esi
cmp ecx, dword [esp + 0xb4]
je 0x49a570
push 0x521608
call fcn.00404690
push 8
push eax
lea edx, [esp + 0x620]
push edx
call fcn.004ba06a
add esp, 0x10
test eax, eax
jne 0x49a58a
push 0x5215fc
call fcn.00404690
push 5
push eax
lea eax, [esp + 0x688]
push eax
call fcn.004ba06a
add esp, 0x10
test eax, eax
jne 0x49a58a
mov ecx, 0xa
lea edi, [esp + 0x614]
lea esi, [esp + 0x67c]
mov byte [esp + 0x17], 1
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xcc]
cmp byte [esp + 0x18], bl
je 0x49a59b
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x66c]
mov ecx, dword [esp + 0x620]
xor esi, esi
xor ebp, 0xdc75474d
add ebp, eax
xor edi, edi
cmp byte [esp + 0x19], 0
lea ebx, [ecx + eax]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x1c], esi
je 0x49a8d0
xor eax, eax
jmp 0x49a620
mov cl, byte [esp + eax + 0x918]
mov byte [esp + eax + 0xc20], cl
inc eax
test cl, cl
jne 0x49a620
push 0x5215f0
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49a642
lea edi, [esp + 0xc20]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49a653
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x918]
mov byte [esp + eax + 0xd24], cl
inc eax
test cl, cl
jne 0x49a670
lea edx, [esp + 0xd24]
push 0x2e
push edx
call fcn.004b9510
mov esi, eax
add esp, 8
test esi, esi
je 0x49a6ba
push 0x5215f0
call fcn.00404690
add esp, 4
mov edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x49a6b0
xor edi, edi
lea esi, [esp + 0xc20]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x7c], eax
cmp eax, 0xffffffff
je 0x49a75b
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x74], eax
test eax, eax
je 0x49a75b
push 0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esp + 0x44], eax
test eax, eax
je 0x49a75b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49a75b
mov ebp, dword [eax + 0x3c]
add ebp, eax
cmp dword [ebp], 0x4550
jne 0x49a75b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xa0]
cmp eax, ecx
je 0x49a775
push ecx
push eax
push esi
push 0x5215dc
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
inc edi
add esi, 0x104
cmp edi, 2
jl 0x49a6c3
mov eax, 0xa
jmp 0x49ba85
cmp byte [esp + 0x17], 0
lea esi, [ebp + 0xf8]
je 0x49a785
add esi, 0x28
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
add eax, dword [esp + 0x44]
mov ebx, esi
push 0x5215d0
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
add esi, 0x28
call fcn.00404690
push eax
push esi
call fcn.004bab59
add esp, 0xc
test eax, eax
je 0x49a7c7
test dword [esi + 0x24], 0x80000000
jne 0x49a7c7
add edi, dword [esi + 8]
add esi, 0x28
mov dword [esp + 0x2c], edi
push 0x5215d0
call fcn.00404690
push eax
push esi
call fcn.004bab59
add esp, 0xc
test eax, eax
jne 0x49a889
lea edx, [edi + 0x1000]
cmp edx, dword [ebp + 0x1c]
jbe 0x49a889
mov eax, dword [ebx + 0xc]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
sub edi, eax
add edi, ecx
add eax, edx
mov dword [esp + 0x2c], edi
cmp eax, ecx
jae 0x49a81d
mov ebx, dword [ebx + 0xc]
add ebx, edx
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x78]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jb 0x49a841
mov edx, dword [esi + 8]
add edx, eax
cmp ecx, edx
jae 0x49a841
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x7c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x80]
cmp ecx, eax
jb 0x49a865
mov edx, dword [esi + 8]
lea ebx, [eax + edx]
cmp ecx, ebx
jae 0x49a865
mov ebx, ecx
mov ecx, eax
sub ecx, ebx
add ecx, edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0xd8]
cmp ecx, eax
jb 0x49a889
mov edx, dword [esi + 8]
add edx, eax
cmp ecx, edx
jae 0x49a889
mov eax, dword [ebp + 0xdc]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x84], eax
cmp dword [ebp + 0xa0], 0
je 0x49a897
mov byte [esp + 0x64], 1
cmp byte [esp + 0x18], 0
jne 0x49a8a5
cmp byte [esp + 0x64], 0
je 0x49a8b2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00499e30
add esp, 4
mov ecx, 0x549aec
call fcn.00498ad0
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov dword [0x54a0ec], 0
xor esi, esi
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x49abf8
mov edx, dword [0x549afc]
sub edx, dword [0x549af8]
test edx, 0xfffffffc
je 0x49a8fc
cmp dword [0x54a0ec], eax
je 0x49abf8
mov ecx, 0x549aec
call fcn.00498ad0
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea eax, [esp + 0x930]
push eax
mov dword [0x54a0ec], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49a941
mov eax, 0x5b
jmp 0x49ba85
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x49a964
mov eax, 0x5c
jmp 0x49ba85
push 0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov edi, eax
test edi, edi
jne 0x49a983
lea eax, [edi + 0x5d]
jmp 0x49ba85
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040c5d0
mov edx, dword [esp + 0x4c]
mov ebp, dword [edi + edx]
add esp, 4
call fcn.0040c5e0
mov esi, eax
xor esi, ebp
call fcn.0040c5e0
mov dword [esp + 0x94], eax
call fcn.0040c5e0
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push eax
push ecx
push ebp
push esi
push 0x5215a0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x18
test ebp, ebp
jne 0x49aa2b
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
push ebx
call edi
push esi
push 0x521580
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea eax, [ebp + 0x5f]
jmp 0x49ba85
cmp esi, 0x100000
jbe 0x49aa70
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push ebx
call edi
push esi
push 0x521564
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov eax, 0x5e
jmp 0x49ba85
push 0
push esi
mov ecx, 0x549aec
call fcn.00420490
mov ecx, dword [esp + 0x48]
lea eax, [esi*4]
push eax
lea edx, [edi + ecx + 4]
push edx
push 0
mov ecx, 0x549aec
call fcn.004079c0
push eax
call fcn.004b6e40
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push ebx
call edi
mov ecx, dword [esp + 0xc0]
xor ecx, dword [esp + 0x94]
xor ecx, ebp
xor ecx, dword [esp + 0xa0]
push ecx
call fcn.0040c5d0
add esp, 4
xor edi, edi
lea esp, [esp]
call fcn.0040c5e0
mov byte [esp + edi + 0x904], al
call fcn.0040c5e0
xor byte [esp + edi + 0x904], al
inc edi
cmp edi, 0x10
jb 0x49aae0
lea edx, [esp + 0x904]
push edx
lea eax, [esp + 0x598]
push eax
mov byte [esp + 0x91c], 0
call fcn.0040e240
add esp, 8
lea ecx, [esp + 0x594]
push ecx
lea eax, [esi*4]
push eax
push 0
mov ecx, 0x549aec
call fcn.004079c0
push eax
call fcn.0040e200
mov edx, dword [esp + 0xcc]
xor edx, dword [esp + 0x40]
mov byte [esp + 0x23], 0
xor edx, ebp
xor edx, dword [esp + 0xac]
xor ebx, ebx
push edx
call fcn.0040c5d0
add esp, 0x10
xor edi, edi
test esi, esi
jbe 0x49abe0
lea ebx, [ebx]
push edi
mov ecx, 0x549aec
call fcn.004079c0
mov ebp, eax
call fcn.0040c5e0
xor dword [ebp], eax
cmp byte [esp + 0x17], 0
jne 0x49aba3
push edi
mov ecx, 0x549aec
call fcn.004079c0
cmp dword [eax], 0
jne 0x49aba3
mov byte [esp + 0x17], 1
mov ebx, edi
inc edi
cmp edi, esi
jb 0x49ab70
test ebx, ebx
je 0x49abe0
lea eax, [ebx + 1]
push eax
mov ecx, 0x549aec
call fcn.004079c0
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
add ebx, 2
push ebx
mov ecx, 0x549aec
call fcn.004079c0
mov eax, dword [eax]
xor eax, dword [esp + 0xa0]
xor eax, 0xa9a9a9a9
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov dword [0x54a0ec], edx
xor esi, esi
mov dword [esp + 0x2c], 0x10000
cmp edi, esi
jne 0x49ac3b
cmp byte [esp + 0x1b], 0
mov edi, dword [esp + 0x61c]
je 0x49ac1b
mov edi, dword [esp + 0x670]
jmp 0x49ac35
cmp byte [esp + 0x1a], 0
je 0x49ac3b
mov eax, dword [0x537c4c]
mov edi, eax
shl edi, 0x10
or edi, eax
xor edi, dword [esp + 0x670]
xor edi, 0xe404a63f
lea ecx, [esp + 0x190]
mov dword [esp + 0x54], edi
call fcn.00407250
push 0x10000
mov dword [esp + 0xe38], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x28], 0xffffffff
call fcn.004b97b1
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x49acb4
push 0x10000
mov dword [esp + 0x30], 0x10000
call fcn.004b97b1
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x49acb4
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], 0xffffffff
call fcn.004011c0
mov eax, 9
jmp 0x49ba85
mov eax, dword [0x548f08]
cmp eax, 2
je 0x49acc8
cmp eax, 0x19
je 0x49acc8
cmp eax, 0x16
jne 0x49acdc
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
push 0x20
push edi
push ebx
push ecx
call dword [0x5385e8]
mov byte [esp + 0x17], 0
mov esi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x2c]
ja 0x49aced
mov esi, edi
cmp byte [esp + 0x1b], 0
je 0x49ad0d
cmp ebx, ebp
jne 0x49ad00
sub edi, 0x30
add ebx, 0x30
jmp 0x49ace1
jae 0x49ad0d
lea edx, [esi + ebx]
cmp edx, ebp
jbe 0x49ad0d
mov esi, ebp
sub esi, ebx
cmp dword [0x537c84], 0
je 0x49ad1b
call fcn.00492260
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x28]
push eax
push esi
push ecx
push ebx
push edx
call dword [0x5385e0]
mov ebp, eax
mov eax, dword [esp + 0x28]
test ebp, ebp
je 0x49ae9d
test eax, eax
je 0x49ae9d
cmp eax, esi
jne 0x49ae9d
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call ebp
cmp dword [esp + 0x48], 0
mov esi, dword [esp + 0x20]
je 0x49ad9a
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x2c]
push 0x549aec
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push eax
push ebx
lea ecx, [esp + 0x1ac]
call fcn.00407a80
mov ecx, eax
mov dword [esp + 0x5c], ecx
jmp 0x49ae31
cmp byte [esp + 0x19], 0
je 0x49ae16
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
mov edx, dword [esp + 0x78]
push eax
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x64]
push 0x54909c
push 0x549aec
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
push eax
push ecx
push esi
push edx
push ebx
lea ecx, [esp + 0x1d8]
call fcn.00408110
mov ecx, eax
mov dword [esp + 0x5c], ecx
jmp 0x49ae31
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
lea ecx, [esp + 0x19c]
call fcn.00405c70
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
cmp edi, eax
jbe 0x49aee2
add dword [esp + 0x3c], eax
sub edi, eax
add ebx, eax
test ecx, ecx
je 0x49ae6a
jge 0x49ae5a
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
jae 0x49aee2
add edi, ecx
sub ebx, ecx
sub dword [esp + 0x3c], ecx
mov dword [esp + 0x5c], 0
cmp byte [esp + 0x17], 0
jne 0x49ae90
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49ae90
mov edx, dword [esp + 0x58]
add eax, edx
cmp ebx, eax
jbe 0x49ae90
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x3c], eax
mov byte [esp + 0x17], 1
push 0
call ebp
mov ebp, dword [esp + 0x60]
jmp 0x49ace1
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x521540
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x1c
cmp dword [esp + 0x2c], 0x10000
jb 0x49ba4e
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x2c], 0x1000
jmp 0x49ace1
mov ecx, dword [esp + 0x24]
not ecx
push esi
mov dword [esp + 0x28], ecx
call fcn.004b97a6
add esp, 4
cmp byte [esp + 0x19], 0
je 0x49b16d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x49af0f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x49af1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x49af2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x34]
xor esi, esi
push edx
mov ecx, 0x549aec
mov dword [esp + 0x38], esi
call fcn.004080a0
mov eax, dword [esp + 0x24]
xor eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
xor eax, 0x3d3d3d3d
push ecx
mov ecx, 0x549aec
mov dword [esp + 0x38], eax
call fcn.004080a0
mov edx, dword [esp + 0xa0]
xor edx, dword [esp + 0x54]
lea eax, [esp + 0x34]
xor edx, 0xa9a9a9a9
push eax
mov ecx, 0x549aec
mov dword [esp + 0x38], edx
call fcn.004080a0
mov ecx, dword [0x549afc]
mov ebp, ecx
sub ebp, dword [0x549af8]
mov eax, 0x10
sar ebp, 2
mov edx, ebp
and edx, 0xf
sub eax, edx
je 0x49afd7
cmp eax, esi
jbe 0x49afcc
mov dword [esp + 0x34], esi
mov esi, eax
lea eax, [esp + 0x34]
push eax
mov ecx, 0x549aec
call fcn.004080a0
sub esi, 1
jne 0x49afb2
mov ecx, dword [0x549afc]
sub ecx, dword [0x549af8]
sar ecx, 2
mov ebp, ecx
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040c5d0
call fcn.0040c5e0
xor eax, ebp
mov dword [esp + 0x20], eax
call fcn.0040c5e0
mov ebx, eax
call fcn.0040c5e0
xor eax, dword [esp + 0x20]
xor eax, dword [esp + 0xc4]
xor eax, dword [esp + 0xa4]
push eax
call fcn.0040c5d0
add esp, 8
xor esi, esi
test ebp, ebp
jbe 0x49b039
lea esp, [esp]
push esi
mov ecx, 0x549aec
call fcn.004079c0
mov edi, eax
call fcn.0040c5e0
xor dword [edi], eax
inc esi
cmp esi, ebp
jb 0x49b020
xor ebx, dword [esp + 0x1c]
xor ebx, dword [esp + 0xc0]
xor ebx, dword [esp + 0xa0]
push ebx
call fcn.0040c5d0
add esp, 4
xor esi, esi
call fcn.0040c5e0
mov byte [esp + esi + 0x8f0], al
call fcn.0040c5e0
xor byte [esp + esi + 0x8f0], al
inc esi
cmp esi, 0x10
jb 0x49b056
lea edx, [esp + 0x8f0]
push edx
lea eax, [esp + 0xa20]
push eax
mov byte [esp + 0x908], 0
call fcn.0040e240
mov ecx, dword [0x549afc]
sub ecx, dword [0x549af8]
add esp, 8
sar ecx, 2
test ecx, ecx
ja 0x49b0ac
call fcn.004b7c48
mov ecx, dword [0x549af8]
lea edx, [esp + 0xa1c]
push edx
lea eax, [ebp*4]
push eax
push ecx
call fcn.0040d3d0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x918]
mov byte [esp + eax + 0xb1c], cl
inc eax
test cl, cl
jne 0x49b0d0
push 0x521534
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b0f2
lea edi, [esp + 0xb1c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b103
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x52152c
rep movsb byte es:[edi], byte [esi]
call fcn.00404690
push eax
lea edx, [esp + 0xb24]
push edx
call fcn.004b8716
mov esi, eax
add esp, 0xc
test esi, esi
je 0x49b16d
push esi
push 4
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004bb6b0
add esp, 0x10
push esi
push 4
push ebp
push 0
mov ecx, 0x549aec
call fcn.004079c0
push eax
call fcn.004bb6b0
push esi
call fcn.004b85d6
add esp, 0x14
cmp byte [esp + 0x1b], 0
je 0x49b2bb
mov edi, dword [esp + 0x670]
mov esi, dword [esp + 0x674]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
xor edi, 0xe404a63f
push edi
xor esi, 0xd7c640cd
push esi
push ecx
push edx
push 0x521508
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x18
cmp dword [esp + 0x24], esi
jne 0x49b21c
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x539758], 2
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xc0]
jne 0x49b27b
cmp byte [esp + 0x18], 0
mov edx, dword [esp + 0x61c]
jne 0x49b23d
cmp ecx, 0x1000
je 0x49b252
mov esi, eax
sub esi, ecx
cmp esi, 0x1fa0
je 0x49b252
push ecx
push 0x5214f4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], 0xffffffff
call fcn.004011c0
mov eax, 0xd
jmp 0x49ba85
mov esi, dword [esp + 0x620]
add esi, edx
cmp esi, ecx
jbe 0x49b252
push ecx
push 0x5214e0
jmp 0x49b206
lea esi, [edx - 0x1000]
cmp esi, edi
jbe 0x49b27b
push edi
push edx
push 0x5214c0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
jmp 0x49b21c
cmp dword [0x548f08], 0
jne 0x49b29a
sub eax, ecx
sub eax, 0x1fa0
neg eax
sbb eax, eax
and eax, 0xffffffe9
add eax, 0x19
mov dword [0x548f08], eax
mov dword [esp + 0xe34], 0xffffffff
lea ecx, [esp + 0x190]
call fcn.004011c0
mov eax, 0x64
jmp 0x49ba85
mov bl, byte [esp + 0x1a]
test bl, bl
je 0x49b5fd
mov ecx, dword [0x537c4c]
mov eax, ecx
shl eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x68]
mov esi, eax
xor esi, dword [esp + 0x674]
xor eax, dword [esp + 0x670]
xor esi, 0xd7c640cd
xor eax, 0xe404a63f
test ecx, ecx
je 0x49b306
mov esi, dword [esp + 0xa0]
xor esi, ecx
xor esi, 0x3d3d3d3d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
push eax
push esi
push ecx
push edx
push 0x52149c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x18
cmp dword [esp + 0x24], esi
je 0x49b464
cmp byte [0x52b549], 0
je 0x49b3f0
push 0x220
lea eax, [esp + 0x6d4]
push 0
push eax
mov byte [0x52b549], 0
call fcn.004b6dc0
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x539714]
add esp, 0xc
push edx
push 8
mov dword [esp + 0x6d4], 0x224
call dword [0x548d20]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x49b4c7
lea eax, [esp + 0x6cc]
push eax
push esi
call dword [0x548d2c]
test eax, eax
je 0x49b3e7
push 0x521488
call fcn.00404690
push eax
lea ecx, [esp + 0x7f4]
push ecx
call fcn.00404270
add esp, 0xc
test eax, eax
jne 0x49b3db
lea edx, [esp + 0x6cc]
push edx
push esi
call dword [0x548d30]
test eax, eax
jne 0x49b3a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49b3f3
mov eax, dword [esp + 0x6e8]
mov dword [0x54a0e8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49b3f3
or edi, 0xffffffff
cmp dword [0x54a0e8], 0
je 0x49b4c7
push 0x521470
call fcn.00404690
mov ecx, dword [0x54a0e8]
mov esi, dword [esp + 0x3c]
add esp, 4
push eax
push ecx
push esi
call fcn.00410130
test eax, eax
je 0x49b4c7
push 0x521460
call fcn.00404690
mov edx, dword [0x54a0e8]
add esp, 4
push eax
push edx
push esi
call fcn.00410130
test eax, eax
je 0x49b4c7
push 0x521450
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
jmp 0x49b467
or edi, 0xffffffff
cmp byte [esp + 0x33], 0
je 0x49b566
cmp dword [0x548f08], 0
jne 0x49b485
mov dword [0x548f08], 3
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x539758], 2
jne 0x49b549
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x49b4e4
cmp dword [esp + 0xa8], 0
je 0x49b4e4
push eax
push 0x52143c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
mov eax, 0xd
jmp 0x49ba85
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x61c]
cmp eax, ecx
jae 0x49b530
push ecx
push eax
push 0x521424
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
mov eax, 0xd
jmp 0x49ba85
cmp dword [esp + 0x170], 0
jne 0x49b549
push 0x521414
call fcn.00404690
jmp 0x49b4b9
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
mov eax, 0x64
jmp 0x49ba85
cmp dword [0x548f08], 2
jne 0x49b579
mov dword [0x548f08], 0x16
cmp byte [esp + 0x19], 0
je 0x49b660
mov ecx, dword [0x537c4c]
mov eax, ecx
shl eax, 0x10
or eax, ecx
mov esi, eax
xor eax, dword [esp + 0x54]
xor esi, dword [esp + 0x24]
xor eax, 0xe404a63f
mov edi, eax
mov eax, dword [esp + 0x90]
push edi
xor esi, 0xd7c640cd
push esi
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x548f04]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
lea edx, [esp + 0x91c]
push esi
push edx
call fcn.00488e40
add esp, 4
push eax
push 0x5213f4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
jmp 0x49b21c
mov eax, dword [esp + 0x674]
test eax, eax
je 0x49b579
xor eax, dword [0x537c4c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov esi, eax
push esi
push ecx
push edx
push 0x5213d8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
cmp dword [esp + 0x24], esi
jne 0x49b21c
cmp dword [0x548f08], 0
jne 0x49b29a
mov dword [0x548f08], 1
jmp 0x49b29a
mov al, byte [esp + 0x18]
test al, al
je 0x49b670
test bl, bl
je 0x49b9e0
mov dword [esp + 0x20], 0
test al, al
jne 0x49b692
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x539768]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x49b93e
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea ecx, [esp + 0x930]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
jne 0x49b6d6
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
lea eax, [edi + 0xa]
jmp 0x49ba85
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x3c]
push edx
push 0x40
lea eax, [esp + 0x648]
push eax
push ebp
call esi
mov ecx, 0x5a4d
cmp word [esp + 0x63c], cx
je 0x49b723
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
mov eax, 0xa
jmp 0x49ba85
mov edx, dword [esp + 0x678]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x3c]
push eax
push 0xf8
lea ecx, [esp + 0xa4]
push ecx
push ebp
call esi
cmp dword [esp + 0x98], 0x4550
je 0x49b77e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], edi
call fcn.004011c0
mov eax, 0xb
jmp 0x49ba85
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x3c]
push edx
push 0x28
lea eax, [esp + 0x620]
push eax
push ebp
call edi
mov ecx, dword [esp + 0x61c]
mov esi, dword [esp + 0xd0]
xor edx, edx
mov eax, ecx
div esi
mov ebx, 1
test edx, edx
je 0x49b7bb
sub esi, edx
add esi, ecx
jmp 0x49b7bd
mov esi, ecx
cmp esi, dword [esp + 0xb4]
je 0x49b83a
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0x28
lea edx, [esp + 0x6b0]
push edx
push ebp
call edi
mov ecx, dword [esp + 0x6ac]
mov esi, dword [esp + 0xd0]
xor edx, edx
mov eax, ecx
div esi
mov ebx, 2
test edx, edx
je 0x49b7fb
sub ecx, edx
add ecx, esi
cmp ecx, dword [esp + 0xb4]
je 0x49b818
cmp dword [esp + 0x628], 0
jne 0x49b833
cmp dword [esp + 0x6b8], 0
je 0x49b833
mov ecx, 0xa
lea esi, [esp + 0x6a4]
lea edi, [esp + 0x614]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x61c]
mov eax, dword [esp + 0x628]
mov esi, ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x49b856
mov eax, dword [esp + 0xec]
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x1a], 0
je 0x49b8b9
movzx ecx, word [esp + 0x9e]
cmp ebx, ecx
jge 0x49b891
lea esp, [esp]
push 0
lea edx, [esp + 0x3c]
push edx
push 0x28
lea eax, [esp + 0x620]
push eax
push ebp
call edi
movzx ecx, word [esp + 0x9e]
inc ebx
cmp ebx, ecx
jl 0x49b870
mov esi, dword [esp + 0x624]
mov edx, dword [esp + 0x628]
lea ecx, [esi + edx]
xor edx, edx
mov eax, esi
div dword [esp + 0xd4]
test edx, edx
je 0x49b8b3
sub ecx, esi
sub ecx, dword [esp + 0x1c]
mov esi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push esi
push ecx
lea edx, [esp + 0x924]
push edx
lea ecx, [esp + 0x1a0]
call fcn.00407c80
test al, al
jne 0x49b904
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], 0xffffffff
call fcn.004011c0
mov eax, 0xc
jmp 0x49ba85
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x20]
jne 0x49b93e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
push eax
push edx
push 0x5213b8
mov dword [ecx + 0x539768], eax
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp byte [esp + 0x1a], 0
je 0x49b9ac
mov ecx, dword [0x537c4c]
mov esi, ecx
shl esi, 0x10
or esi, ecx
xor esi, dword [esp + 0x668]
xor esi, 0x77a9cfcf
push esi
push eax
mov eax, dword [esp + 0x48]
push eax
push 0x52139c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
mov dword [esp + 0xe34], 0xffffffff
lea ecx, [esp + 0x190]
cmp dword [esp + 0x20], esi
je 0x49b2ac
call fcn.004011c0
mov eax, 0xd
jmp 0x49ba85
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push 0x521384
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov eax, dword [esp + 0x38]
add esp, 0x14
cmp eax, dword [esp + 0x20]
jne 0x49b21c
mov ecx, dword [esp + 0x4c]
cmp dword [ecx + 0x539758], 2
jne 0x49b29a
push 0x52136c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
push 0x521360
call fcn.00404690
add esp, 0x10
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x521630
mov esi, eax
call fcn.00404690
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test esi, esi
je 0x49b21c
test eax, eax
jne 0x49b29a
jmp 0x49b21c
mov edx, dword [esp + 0x20]
push edx
call fcn.004b97a6
add esp, 4
lea ecx, [esp + 0x190]
mov dword [esp + 0xe34], 0xffffffff
call fcn.004011c0
mov eax, 7
jmp 0x49ba85
mov eax, 5
jmp 0x49ba85
mov eax, 4
mov ecx, dword [esp + 0xe2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe14]
xor ecx, esp
call fcn.004b6da3
add esp, 0xe24
ret