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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x40247e
sub esp, 0xac
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov ebx, dword [esp + 0xb0]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ebx
call dbg.main.getVersionsDir
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
call dbg.io/ioutil.ReadDir
mov ebx, dword [esp + 8]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov dword [esp], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 4], eax
call dbg.main.check
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x88], ebx
xor ecx, ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], edx
mov eax, edx
mov ebp, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x402293
mov dword [esp + 0x24], eax
cmp eax, 0
je 0x402477
mov edx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp], ebp
mov dword [esp + 0x38], edx
mov ebx, dword [edx + 0x20]
call ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp ecx, 7
jne 0x40229a
mov dword [esp + 0x60], edx
mov dword [esp], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 4], ecx
mov ebp, 0x549308
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 7
call dbg.runtime.eqstring
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x40229a
mov eax, dword [esp + 0x24]
add eax, 8
mov ecx, dword [esp + 0x20]
inc ecx
mov ebp, dword [esp + 0x1c]
cmp ecx, ebp
jl 0x402215
add esp, 0xac
ret
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov ebx, dword [ebx + 0x20]
call ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x64], ebx
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x9c]
cmp eax, 0
je 0x402470
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], 2
mov dword [esp + 0x74], eax
mov ebp, dword [esp + 0x2c]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x28]
cmp byte [0xb3d87c], 0
jne 0x40245b
mov dword [eax], ebp
mov ebx, eax
add ebx, 8
mov ebp, dword [esp + 0x64]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x60]
cmp byte [0xb3d87c], 0
jne 0x402446
mov dword [ebx], ebp
mov dword [esp], eax
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
call dbg.path/filepath.Join
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea ebx, [esp + 0x8c]
mov eax, ebx
mov ebp, dword [0x5868a0]
mov dword [ebx], ebp
mov ebp, dword [0x5868a4]
mov dword [ebx + 4], ebp
mov ebp, dword [0x5868a8]
mov dword [ebx + 8], ebp
mov ebp, dword [0x5868ac]
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], 2
mov dword [esp + 0x74], ebx
mov dword [esp + 0x34], ecx
mov dword [ebx + 4], ecx
mov dword [esp + 0x30], edx
cmp byte [0xb3d87c], 0
jne 0x402431
mov dword [ebx], edx
mov dword [esp], eax
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
call dbg.path/filepath.Join
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 4], eax
call dbg.os.Remove
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
cmp eax, 0
jne 0x40227f
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
call dbg.os.RemoveAll
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 4], eax
call dbg.main.check
jmp 0x40227f
mov dword [esp], ebx
mov dword [esp + 4], edx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x74]
jmp 0x4023af
mov dword [esp], ebx
mov dword [esp + 4], ebp
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x74]
jmp 0x402335
mov dword [esp], eax
mov dword [esp + 4], ebp
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x74]
jmp 0x402316
mov dword [eax], eax
jmp 0x4022e8
mov dword [eax], eax
jmp 0x402222
call dbg.runtime.morestack_noctxt
jmp dbg.main.removeOldVersions