Function at 0x494db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53f6d6
push eax
mov dword fs:[0], esp
sub esp, 0x524
mov dword [0x593050], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call ebx
mov ebp, dword [esp + 0x53c]
mov dword [0x593058], eax
test ebp, ebp
je 0x49587c
cmp word [ebp], 0
je 0x49587c
mov eax, dword [esp + 0x540]
test eax, eax
je 0x49587c
cmp word [eax], 0
je 0x49587c
mov eax, dword [0x59305c]
test eax, eax
jne 0x494e39
mov dword [0x593050], 2
mov dword [0x593054], 0x998
jmp 0x495890
push esi
push edi
xor edx, edx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x148]
mov dword [esp + 0x144], edx
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x50], edx
push eax
push 0x60
push 1
push 7
push 0x80
push 0x120089
push ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x70], edx
call fcn.004bb100
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
jne 0x494ec9
cmp dword [esp + 0x54], 0xc0000034
je 0x495621
push 0
push 0x60
push 1
push 7
push 0x80
push 0x120089
push ebp
call fcn.004bb100
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
je 0x49563e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb4]
push ecx
push esi
stosb byte es:[edi], al
call fcn.0049acf0
add esp, 8
test eax, eax
je 0x49565b
lea edx, [esp + 0xb4]
test edx, edx
je 0x49567b
push 0x10
lea eax, [esp + 0xb8]
push 0x575608
push eax
call fcn.0042ecc0
add esp, 0xc
test eax, eax
jne 0x49567b
test byte [esp + 0xe6], 1
je 0x49567b
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x18]
xor ebp, ebp
push ecx
lea edx, [esp + 0x38]
push ebp
push edx
push ebp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], ebp
call fcn.004909f0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ebp
jne 0x49569b
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xf8]
mov dword [esp + 0xf4], ebp
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.0051a5b0
lea ecx, [esp + 0xf4]
lea edx, [esp + 0xb4]
push ecx
push edx
push esi
mov dword [esp + 0x548], ebp
call fcn.0049af60
add esp, 0xc
test eax, eax
je 0x4956bb
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x1ad]
mov byte [esp + 0x1ac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1ac]
push eax
push esi
call fcn.00497320
add esp, 8
test eax, eax
je 0x4956ef
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xf4]
push ecx
lea eax, [esp + 0xb8]
push edx
push eax
push esi
call fcn.0049b1e0
add esp, 0x10
test eax, eax
je 0x495723
cmp word [esp + 0x86], bp
jne 0x495757
lea ecx, [esp + 0x1c]
call fcn.0051a5b0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0xfc]
push eax
lea edx, [esp + 0xc0]
push ecx
push edx
push esi
mov byte [esp + 0x554], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
call fcn.0049b430
add esp, 0x18
test eax, eax
je 0x49578b
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov di, word [eax + 0xc]
cmp di, bp
jbe 0x4950b7
mov edx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x4950b1
mov eax, dword [eax]
cmp eax, 1
jb 0x4957d0
cmp eax, 4
ja 0x4957d0
inc ecx
cmp cx, di
jb 0x495089
lea ecx, [esp + 0x1c]
mov byte [esp + 0x53c], 0
call fcn.0051a710
lea ecx, [esp + 0x144]
push 0x28
push ecx
push esi
call fcn.004ba310
add esp, 0xc
test eax, eax
je 0x4957e6
mov edi, dword [esp + 0x548]
push 0
push 0x60
push 3
push 1
push 0x80
push 0x120116
push edi
call fcn.004bb100
mov esi, eax
or ebp, 0xffffffff
add esp, 0x1c
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x495145
push 1
push 0
push edi
call fcn.004ba390
push 0
push 0x60
push 1
push 7
push 0x80
push 0x120116
push edi
call fcn.004bb100
mov esi, eax
add esp, 0x28
cmp esi, ebp
mov dword [esp + 0x28], esi
je 0x495803
mov edx, dword [esp + 0x128]
mov dword [esp + 0x50], 1
push edx
call fcn.004bded0
add esp, 4
mov dword [esp + 0x60], eax
test eax, eax
je 0x495819
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x16c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x40]
lea edx, [esp + 0x74]
push eax
push 0x40
push ecx
lea eax, [esp + 0x100]
push edx
push eax
call fcn.004a5f60
add esp, 0x14
test eax, eax
je 0x49582f
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x49585f
mov edi, dword [esp + 0xa8]
cmp eax, 1
jne 0x4951f0
mov edi, dword [esp + 0xac]
mov ecx, dword [esp + 0x60]
push edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, dword [0x575604]
mov ecx, eax
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x44], esi
mov ebx, eax
mov eax, dword [esp + 0xa4]
imul ebx, ecx
cmp eax, 1
mov dword [esp + 0x34], ebx
je 0x49522f
mov eax, esi
xor edx, edx
div edi
test edx, edx
je 0x49523b
mov esi, edi
mov ebx, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], ebx
push esi
call fcn.00520a0a
push ebx
mov dword [esp + 0x40], eax
call fcn.00520a0a
mov ecx, dword [esp + 0x44]
add esp, 8
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x118]
push ebp
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x38]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0xa4]
lea ecx, [edi + ebp]
cmp ecx, eax
jb 0x4952e1
mov edi, eax
mov eax, dword [esp + 0xac]
sub edi, ebp
mov dword [esp + 0x18], 1
lea esi, [edi - 1]
imul esi, dword [esp + 0xa8]
add esi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x4c]
push 0
push edx
push esi
push eax
push ecx
mov dword [esp + 0x60], 0
call fcn.004ba790
add esp, 0x18
test eax, eax
je 0x495514
cmp esi, dword [esp + 0x48]
jne 0x49552a
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
xor edi, edi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], ecx
jne 0x495353
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0xa0]
xor eax, eax
cmp eax, edx
mov dword [esp + 0x14], edi
ja 0x4953da
jb 0x495375
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
cmp edx, eax
jae 0x4953da
lea eax, [esp + 0x4c]
lea edx, [esp + 0x68]
push eax
mov eax, dword [esp + 0x88]
push edx
push ecx
push ebx
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x60], edi
call fcn.004aad10
add esp, 0x14
test eax, eax
je 0x4954e8
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x54]
push ebp
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x54]
push eax
lea eax, [esp + 0x184]
push eax
call dword [edx + 0x14]
cmp eax, edi
je 0x4954fe
mov ecx, dword [esp + 0x14]
jmp 0x495436
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x70]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x4953f3
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x84]
and eax, 0xffff
sub eax, edi
je 0x49541e
dec eax
je 0x49540e
dec eax
jne 0x495436
lea esi, [ebx + 8]
jmp 0x495420
mov eax, ecx
lea esi, [ebx + 4]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x49542b
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x30]
cmp edx, eax
jne 0x495476
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
cmp eax, edi
ja 0x49545f
cmp ecx, 0x1000
jbe 0x495472
and ecx, 0xfff
xor eax, eax
mov edx, ecx
or edx, eax
jne 0x495472
mov ecx, 0x1000
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
add esi, ecx
dec eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], eax
je 0x495498
mov edx, dword [esp + 0x64]
add ebx, edx
add ebp, ecx
jmp 0x495329
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push edi
push eax
push esi
add ebx, esi
push ecx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x6c], edi
call fcn.004ba890
add esp, 0x14
test eax, eax
je 0x495540
cmp dword [esp + 0x58], esi
jb 0x495556
cmp dword [esp + 0x18], edi
jne 0x49557d
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
jmp 0x495283
mov dword [0x593050], 0x1c
mov dword [0x593054], 0xaa1
jmp 0x49556a
mov dword [0x593050], 0x12
mov dword [0x593054], 0xaaa
jmp 0x49556a
mov dword [0x593050], 0xd
mov dword [0x593054], 0xa7d
jmp 0x49556a
mov dword [0x593050], 0xd
mov dword [0x593054], 0xa85
jmp 0x49556a
mov dword [0x593050], 0xe
mov dword [0x593054], 0xad4
jmp 0x49556a
mov dword [0x593050], 0xe
mov dword [0x593054], 0xadc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x38]
push eax
call fcn.00520a33
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00520a33
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4955ac
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4955ac
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4955df
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x144]
push 0x28
push edx
push eax
call fcn.004ba350
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4955ef
push eax
call dword [0x593fb8]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4955ff
push eax
call dword [0x593fb8]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x495621
mov eax, dword [esp + 0x50]
test eax, eax
je 0x495621
mov ecx, dword [esp + 0x548]
push 1
push ecx
call fcn.004ba690
add esp, 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x524]
mov dword fs:[0], ecx
add esp, 0x530
ret
mov dword [0x593050], 3
mov dword [0x593054], 0x9bd
call ebx
mov dword [0x593058], eax
jmp 0x495621
mov dword [0x593050], 0xf
mov dword [0x593054], 0x9c5
call ebx
mov dword [0x593058], eax
jmp 0x4955df
mov dword [0x593050], 0x22
mov dword [0x593054], 0x9cc
call ebx
mov dword [0x593058], eax
jmp 0x4955df
mov dword [0x593050], 0x31
mov dword [0x593054], 0x9d3
call ebx
mov dword [0x593058], eax
jmp 0x4955df
mov dword [0x593050], 0x14
mov dword [0x593054], 0x9df
call ebx
lea ecx, [esp + 0x10]
mov dword [0x593058], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
jmp 0x4955df
mov dword [0x593050], 0x1f
mov dword [0x593054], 0x9e7
call ebx
lea ecx, [esp + 0x10]
mov dword [0x593058], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
jmp 0x4955df
mov dword [0x593050], 0x14
mov dword [0x593054], 0x9ed
call ebx
lea ecx, [esp + 0x10]
mov dword [0x593058], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
jmp 0x4955df
mov dword [0x593050], 1
mov dword [0x593054], 0x9f4
call ebx
lea ecx, [esp + 0x10]
mov dword [0x593058], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
jmp 0x4955df
mov dword [0x593050], 0x14
mov dword [0x593054], 0x9fe
call ebx
lea ecx, [esp + 0x1c]
mov dword [0x593058], eax
mov byte [esp + 0x53c], 0
call fcn.0051a710
lea ecx, [esp + 0x10]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0051a710
jmp 0x4955df
mov dword [0x593050], 0x32
mov dword [0x593054], 0xa04
jmp 0x49579f
mov dword [0x593050], 5
mov dword [0x593054], 0xa13
call ebx
mov dword [0x593058], eax
jmp 0x4957b7
mov dword [0x593050], 4
mov dword [0x593054], 0xa2f
jmp 0x495843
mov dword [0x593050], 0xc
mov dword [0x593054], 0xa3a
jmp 0x495843
mov dword [0x593050], 0xb
mov dword [0x593054], 0xa43
call ebx
lea ecx, [esp + 0x10]
mov dword [0x593058], eax
mov dword [esp + 0x53c], ebp
call fcn.0051a710
jmp 0x4955df
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x53c], ebp
call fcn.0051a710
jmp 0x4955c8
mov dword [0x593050], 1
mov dword [0x593054], 0x992
call ebx
mov ecx, dword [esp + 0x52c]
mov dword [0x593058], eax
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x530
ret