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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x4018f0
sub esp, 0xd8
xor eax, eax
lea edi, [esp + 0xb8]
call fcn.0044cee8
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
call dbg.packager/data.AssetNames
mov ebp, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x98], edx
xor edx, edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x90], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x20]
cmp edx, ebp
jge 0x4017bc
mov ebx, ecx
mov dword [esp + 0x30], ecx
cmp ecx, 0
je 0x4018e9
mov ecx, dword [ecx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x48], ecx
mov dword [esp], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 4], ebp
call dbg.packager/data.Asset
mov ebx, dword [esp + 8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x80], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 4], eax
call dbg.main.check
mov ebx, dword [esp + 0xdc]
mov dword [esp], ebx
mov ebx, dword [esp + 0xe0]
mov dword [esp + 4], ebx
call dbg.main.getVersionSubdir
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xa8]
cmp eax, 0
je 0x4018e2
mov dword [esp + 0x88], 2
mov dword [esp + 0x8c], 2
mov dword [esp + 0x84], eax
mov dword [esp + 0x64], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0x60], edx
cmp byte [0xb3d87c], 0
jne 0x4018ca
mov dword [eax], edx
mov ebx, eax
add ebx, 8
mov ebp, dword [esp + 0x4c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x48]
cmp byte [0xb3d87c], 0
jne 0x4018b2
mov dword [ebx], ebp
mov dword [esp], eax
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 8], ebx
call dbg.path/filepath.Join
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov dword [esp], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 4], eax
call dbg.path/filepath.Dir
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1ed
call dbg.os.MkdirAll
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ecx
mov dword [esp], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 4], eax
call dbg.main.check
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], 0x1ed
call dbg.os.OpenFile
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 4], eax
call dbg.main.check
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp], 0xc
mov eax, 0x5860f8
mov dword [esp + 4], eax
call dbg.runtime.deferproc
cmp eax, 0
jne 0x4018a5
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov eax, dword [0xb3d93c]
xor ebp, ebp
cmp eax, ebp
je 0x401880
mov edx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov ebx, eax
mov dword [esp + 0x5c], edx
mov eax, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edx
mov ecx, 0x1000
mov dword [esp + 0x40], ebx
xor ebp, ebp
cmp ebx, ebp
je 0x401737
mov ebx, dword [ebx + 4]
mov ebp, 0x53e340
cmp ebx, ebp
jne 0x401877
mov edx, 1
cmp dl, 0
je 0x4017c9
mov edx, dword [eax + 0xc]
cmp edx, ecx
jl 0x4017c9
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0xc], ebx
call dbg.bufio.(*Writer).Write
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 4], eax
call dbg.main.check
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
call dbg.bufio.(*Writer).Flush
mov ecx, dword [esp + 0x30]
add ecx, 8
mov edx, dword [esp + 0x24]
inc edx
mov ebp, dword [esp + 0x20]
cmp edx, ebp
jl 0x4014f8
nop
call dbg.runtime.deferreturn
add esp, 0xd8
ret
cmp ecx, 0
jg 0x4017d3
mov ecx, 0x1000
mov dword [esp], 0x506a80
mov eax, ecx
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, ecx
cdq
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call dbg.runtime.makeslice
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
lea eax, [esp + 0xb8]
xor ebp, ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ebp, dword [esp + 0x40]
mov dword [eax + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [eax + 0x1c], ebp
jmp 0x401755
xor eax, eax
xor edx, edx
jmp 0x401749
mov dword [esp], 0x5432c0
mov dword [esp + 4], 0x529760
mov dword [esp + 8], 0xb3d93c
call dbg.runtime.typ2Itab
mov eax, dword [esp + 0xc]
jmp 0x401709
nop
call dbg.runtime.deferreturn
add esp, 0xd8
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x84]
jmp 0x401609
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x84]
jmp 0x4015ea
mov dword [eax], eax
jmp 0x4015b3
mov dword [ecx], eax
jmp 0x401507
call dbg.runtime.morestack_noctxt
jmp dbg.main.extractAssets