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

Disassembly:
mov ecx, dword [0x621238]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x25c]
cmp eax, dword [ecx + 8]
jbe 0x4a8f70
sub esp, 0x2dc
mov eax, 0
mov dword [esp + 0x2d8], eax
mov byte [esp + 0x2b], 0
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
mov dword [esp + 0x2fc], 0
mov dword [esp + 0x300], 0
mov eax, dword [esp + 0x2ec]
test eax, eax
jne 0x4a86da
lea eax, [0x50dec0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a865c
mov ecx, dword [esp + 0x2e0]
jmp 0x4a866a
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e0]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8686
mov ecx, dword [esp + 0x2e8]
jmp 0x4a8694
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e8]
mov dword [edi], ecx
mov dword [eax + 8], ecx
lea ecx, [0x54d74c]
mov dword [eax + 0x10], ecx
lea ecx, [0x54c4e4]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
lea ecx, [0x54d8b4]
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
mov ecx, dword [esp + 0x2e8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.os.fixLongPath
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.syscall.UTF16FromString
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a8711
mov ecx, dword [esp + 0x18]
xor edx, edx
jmp 0x4a8725
mov edx, dword [esp + 0xc]
test edx, edx
jbe 0x4a8f5a
mov edx, dword [esp + 8]
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x4a8801
mov dword [esp + 0x2b0], ecx
mov dword [esp + 0x2c], eax
lea eax, [0x50dec0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8767
mov ecx, dword [esp + 0x2e0]
jmp 0x4a8775
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e0]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8794
mov ecx, dword [esp + 0x2e8]
jmp 0x4a87a2
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e8]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a87bf
mov ecx, dword [esp + 0x2b0]
jmp 0x4a87cd
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2b0]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
lea ecx, [0x54d8b4]
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
mov dword [esp + 0x2b4], edx
lea edi, [esp + 0x40]
xor eax, eax
call fcn.004669b7
mov dword [esp], edx
mov dword [esp + 4], 0
lea ecx, [esp + 0x40]
mov dword [esp + 8], ecx
call sym.syscall.GetFileAttributesEx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
lea ebx, [0x54d74c]
cmp ecx, ebx
jne 0x4a8984
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x54d1a4]
mov dword [esp + 8], eax
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a8871
mov edx, dword [esp + 0x34]
jmp 0x4a8984
lea edi, [esp + 0x64]
mov ecx, 0x93
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x2b4]
mov dword [esp], edx
lea ebx, [esp + 0x64]
mov dword [esp + 4], ebx
call sym.syscall.FindFirstFile
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
test edx, edx
je 0x4a8965
mov dword [esp + 0x2d4], ebp
mov dword [esp + 0x2c8], ebx
lea eax, [0x50dec0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xd
lea ecx, [0x51fd36]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a88f5
mov ecx, dword [esp + 0x2e8]
jmp 0x4a8903
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e8]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2d4]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8923
mov ecx, dword [esp + 0x2c8]
jmp 0x4a8931
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2c8]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
lea ecx, [0x54d8b4]
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
mov eax, dword [esp + 8]
mov dword [esp], eax
call sym.syscall.FindClose
mov eax, dword [esp + 0x64]
test eax, 0x400
je 0x4a8e38
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x4a8997
mov eax, dword [esp + 0x40]
test eax, 0x400
je 0x4a8d4f
mov eax, dword [esp + 0x2b4]
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], 0x2200000
mov dword [esp + 0x18], 0
call sym.syscall.CreateFile
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4a8aa6
mov dword [esp + 0x2d4], edx
mov dword [esp + 0x2cc], ecx
lea eax, [0x50dec0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xa
lea ecx, [0x51f080]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8a36
mov ecx, dword [esp + 0x2e8]
jmp 0x4a8a44
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e8]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2d4]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8a64
mov ecx, dword [esp + 0x2cc]
jmp 0x4a8a72
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2cc]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
lea ecx, [0x54d8b4]
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2e8]
mov dword [esp], ecx
mov edx, dword [esp + 0x2ec]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.os.statHandle
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2d4], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2b8], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2d0], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x2c4], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2cc], esi
mov edi, dword [esp + 0x30]
mov dword [esp], edi
call sym.syscall.CloseHandle
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a8b2b
mov eax, dword [esp + 0x2d4]
jmp 0x4a8d17
movzx eax, byte [esp + 0x2f0]
test al, al
je 0x4a8d10
mov eax, dword [esp + 0x2d4]
lea ecx, [0x54dd30]
cmp eax, ecx
jne 0x4a8f3e
mov ecx, dword [esp + 0x2b8]
mov ecx, dword [ecx + 0x2c]
cmp ecx, 0xa000000c
je 0x4a8b6e
cmp ecx, 0xa0000003
jne 0x4a8d17
mov eax, dword [esp + 0x2b4]
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 sym.syscall.CreateFile
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x4a8c7d
mov dword [esp + 0x2d4], edx
mov dword [esp + 0x2cc], ecx
lea eax, [0x50dec0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xa
lea ecx, [0x51f080]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8c0d
mov ecx, dword [esp + 0x2e8]
jmp 0x4a8c1b
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2e8]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2d4]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x6213a0]
test ecx, ecx
jne 0x4a8c3b
mov ecx, dword [esp + 0x2cc]
jmp 0x4a8c49
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x2cc]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
lea ecx, [0x54d8b4]
mov dword [esp + 0x2fc], ecx
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea ecx, [sym.os.stat.func1]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x2d8], ecx
mov byte [esp + 0x2b], 1
mov ecx, dword [esp + 0x2e8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.os.statHandle
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2f4], ecx
mov dword [esp + 0x2f8], edx
mov dword [esp + 0x2fc], eax
mov dword [esp + 0x300], ebx
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0x2d8]
mov eax, dword [edx]
call eax
add esp, 0x2dc
ret
mov eax, dword [esp + 0x2d4]
mov dword [esp + 0x2f4], eax
mov eax, dword [esp + 0x2c4]
mov dword [esp + 0x2f8], eax
mov eax, dword [esp + 0x2d0]
mov dword [esp + 0x2fc], eax
mov eax, dword [esp + 0x2cc]
mov dword [esp + 0x300], eax
add esp, 0x2dc
ret
lea eax, [0x517140]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x2c0], eax
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x28], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2e8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [esp + 8], ecx
call sym.os._fileStat_.saveInfoFromPath
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a8e00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
mov dword [esp + 0x2fc], eax
mov dword [esp + 0x300], ecx
add esp, 0x2dc
ret
lea eax, [0x54dd30]
mov dword [esp + 0x2f4], eax
mov eax, dword [esp + 0x2c0]
mov dword [esp + 0x2f8], eax
mov dword [esp + 0x2fc], 0
mov dword [esp + 0x300], 0
add esp, 0x2dc
ret
nop
lea eax, [0x517140]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x64]
test ecx, 0x400
je 0x4a8ea6
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x2c], ecx
mov dword [esp + 0x2bc], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x2e8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2ec]
mov dword [esp + 8], ecx
call sym.os._fileStat_.saveInfoFromPath
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a8f06
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2f4], 0
mov dword [esp + 0x2f8], 0
mov dword [esp + 0x2fc], eax
mov dword [esp + 0x300], ecx
add esp, 0x2dc
ret
lea eax, [0x54dd30]
mov dword [esp + 0x2f4], eax
mov eax, dword [esp + 0x2bc]
mov dword [esp + 0x2f8], eax
mov dword [esp + 0x2fc], 0
mov dword [esp + 0x300], 0
add esp, 0x2dc
ret
mov ecx, dword [0x54dd34]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x50faa0]
mov dword [esp + 8], eax
call sym.runtime.panicdottypeI
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
add esp, 0x2dc
ret
call sym.runtime.morestack_noctxt
jmp sym.os.stat