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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x494343
sub esp, 0x84
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x49424a
cmp eax, 3
jne 0x49423e
mov ecx, dword [esp + 0x88]
movzx edx, word [ecx]
cmp dx, 0x554e
jne 0x493a02
movzx edx, byte [ecx + 2]
cmp dl, 0x4c
je 0x494201
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.os.fixLongPath
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.syscall.UTF16PtrFromString
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x493b31
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
lea eax, [0x50fea0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax + 4], 4
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x493b16
lea ecx, [0x524d2d]
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x493afa
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0x14]
test ecx, ecx
jne 0x493ae4
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x53fa20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493aad
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493a92
mov dword [esp], eax
lea ecx, [0x524d2d]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493a71
mov dword [esp + 0x64], eax
lea eax, [0x519ca0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
lea ecx, [eax + 8]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], 0
call dbg.syscall.GetFileAttributesEx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x493f91
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x18], 0
call dbg.syscall.CreateFile
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x493d35
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
je 0x493be7
mov eax, dword [edx + 4]
lea ebx, [0x50eac0]
cmp ebx, eax
jne 0x493be7
mov eax, dword [ecx]
cmp eax, 0x20
je 0x493cda
lea eax, [0x50fea0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax + 4], 0xa
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x493cbf
lea ecx, [0x525aee]
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x493ca3
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0x14]
test ecx, ecx
jne 0x493c8d
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x53fa20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493c56
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493c3b
mov dword [esp], eax
lea ecx, [0x525aee]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493c1a
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
call dbg.os.statWithFindFirstFile
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ebx
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
mov dword [esp], 0xc
lea ecx, [0x52ed74]
mov dword [esp + 4], ecx
call dbg.runtime.deferproc
test eax, eax
jne 0x493f84
lea edi, [esp + 0x30]
xor eax, eax
call fcn.0044ad13
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 4], ecx
call dbg.syscall.GetFileInformationByHandle
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x493e85
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea eax, [0x50fea0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax + 4], 0x1a
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x493e6a
lea ecx, [0x529ef2]
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x493e4e
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0x14]
test ecx, ecx
jne 0x493e38
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x53fa20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493e01
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493de6
mov dword [esp], eax
lea ecx, [0x529ef2]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x493dc5
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call dbg.os.basename
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
lea edx, [0x519ca0]
mov dword [esp], edx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x493f67
mov ecx, dword [esp + 0x78]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x44], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x48], ecx
lea ecx, [0x5403a0]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp + 0x74], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x74]
jmp 0x493edc
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 8]
test ecx, 0x400
jne 0x493b75
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x3c], ecx
mov edx, dword [0x5d9ed0]
lea ebx, [eax + 0x38]
mov dword [esp + 0x70], ebx
test edx, edx
jne 0x4941db
mov edx, dword [esp + 0x88]
mov dword [eax + 0x38], edx
mov ecx, dword [eax + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call dbg.os.isAbs
movzx eax, byte [esp + 8]
test al, al
je 0x494070
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call dbg.os.basename
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x80]
mov dword [edx + 4], eax
mov eax, dword [0x5d9ed0]
test eax, eax
jne 0x49405b
mov dword [edx], ecx
lea eax, [0x5403a0]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x80]
jmp 0x494024
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
mov dword [esp], edx
mov dword [esp + 4], ecx
call dbg.syscall.FullPath
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x80]
mov dword [ebp + 0x3c], edx
mov edx, dword [0x5d9ed0]
test edx, edx
jne 0x4941b7
mov dword [ebp + 0x38], ebx
test ecx, ecx
je 0x493fec
lea eax, [0x50fea0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax + 4], 8
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x49419c
lea ecx, [0x525526]
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x494180
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0x14]
test ecx, ecx
jne 0x49416a
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x53fa20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x494133
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x494118
mov dword [esp], eax
lea ecx, [0x525526]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x4940f7
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x80]
jmp 0x4940bc
mov dword [esp], ebx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
jmp 0x493fd0
lea eax, [0x5403a0]
mov dword [esp + 0x90], eax
lea eax, [0x5c7d20]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov ecx, dword [esp + 0x88]
jmp 0x493a02
lea eax, [0x50fea0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax + 4], 4
mov ecx, dword [0x5d9ed0]
test ecx, ecx
jne 0x494328
lea ecx, [0x524d2d]
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x49430c
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
lea ecx, [0x53fbe0]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0x14]
test ecx, ecx
jne 0x4942f4
lea ecx, [0x53ed7c]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x53fa20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
nop
call dbg.runtime.deferreturn
add esp, 0x84
ret
mov dword [esp], edx
lea eax, [0x53ed7c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x4942bd
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x49429e
mov dword [esp], eax
lea ecx, [0x524d2d]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x7c]
jmp 0x49427d
call dbg.runtime.morestack_noctxt
jmp dbg.os.statNolog