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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [edx]
mov dword [esp], 0x4db1c8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x4f0d70
call sym.___emutls_get_address
mov dword [esp + 0x3c], ebx
mov ebp, eax
mov eax, ebx
xor ebx, ebx
test eax, eax
jle 0x4be314
test ebx, ebx
js 0x4be1f7
nop
cmp eax, ebx
jle 0x4be1f7
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x6c]
mov ecx, 0x11
mov esi, ebx
shl esi, 7
mov edx, dword [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esp + 0x6c]
mov dword [esp + 8], edi
lea ecx, [edx + esi + 0xc]
mov eax, dword [edx + esi + 0x50]
mov edx, dword [edx + esi + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._slash___pureZuri_u383_16
sub esp, 0xc
cmp byte [ebp], 0
jne 0x4be5c0
mov ecx, edi
call sym._dollar___pureZuri_u409_4
cmp byte [ebp], 0
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x28], edx
jne 0x4be5c0
lea ecx, [esp + 0x6c]
call sym._eqdestroy___pureZuri_u213_4
cmp byte [ebp], 0
jne 0x4be8bc
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp eax, ebx
jle 0x4be2e8
mov eax, dword [esp + 0x20]
add esi, dword [eax + 4]
cmp byte [esi + 0x80], 0
jne 0x4be250
lea eax, [esp + 0x6c]
mov edx, dword [0x4efd34]
lea ecx, [esp + 0x54]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov eax, dword [0x4efd30]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x74], 6
mov dword [esp + 0x78], 0x4efd24
call sym._nsuAddf_20
sub esp, 0x10
cmp byte [ebp], 0
jne 0x4be5d0
mov edx, ebx
add edx, 1
mov esi, edx
jo 0x4be29f
test edi, edi
je 0x4be300
test dword [edi], 0x40000000
je 0x4be2ba
cmp byte [ebp], 0
jne 0x4be210
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp dword [esp + 0x24], esi
jle 0x4be310
test ebx, ebx
js 0x4be236
mov ebx, esi
test ebx, ebx
jns 0x4be0c0
sub eax, 1
mov dword [esp], ebx
mov esi, ebx
mov dword [esp + 4], eax
call sym._raiseIndexError2
cmp byte [ebp], 0
je 0x4be1d9
nop
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4be224
test dword [eax], 0x40000000
je 0x4be2d0
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
sub eax, 1
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._raiseIndexError2
cmp byte [ebp], 0
je 0x4be230
jmp 0x4be210
lea eax, [esp + 0x6c]
mov edx, dword [0x4efd34]
lea ecx, [esp + 0x54]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov eax, dword [0x4efd30]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x4f0d70
call sym._nsuAddf_20
sub esp, 0x10
cmp byte [ebp], 0
jne 0x4be5d0
mov esi, ebx
add esi, 1
jno 0x4be2a6
call sym._raiseOverflow
mov esi, ebx
test edi, edi
je 0x4be1d3
test dword [edi], 0x40000000
jne 0x4be1d3
mov dword [esp], edi
call sym._deallocShared
jmp 0x4be1d3
mov dword [esp], eax
call sym._deallocShared
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, 1
mov dword [esp], ebx
mov esi, ebx
mov dword [esp + 4], eax
call sym._raiseIndexError2
jmp 0x4be2a6
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp edx, dword [esp + 0x24]
jl 0x4be1ed
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebp
jmp 0x4be370
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym._raiseIndexError2
mov dword [esp], 0
mov dword [esp + 4], 0
call sym._eqdestroy___pureZosproc_u463_8
sub esp, 8
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
jne 0x4be210
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x28], eax
jo 0x4be850
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x28], ebx
jge 0x4be5f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
test ecx, ecx
js 0x4be328
cmp ecx, eax
jge 0x4be328
mov ebx, dword [esp + 0x20]
mov eax, ecx
lea ebp, [esp + 0x6c]
shl eax, 7
mov edx, dword [ebx + 4]
add edx, eax
mov ebx, dword [edx + 0x7c]
mov edi, dword [edx + 0x78]
mov dword [esp + 0x30], ebx
lea ebx, [eax + 4]
add eax, 0xc
mov dword [esp + 0x44], ebx
xor ebx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], eax
test edi, edi
jg 0x4be53d
jmp 0x4be33b
mov eax, dword [esp + 0x20]
mov ecx, 0x11
mov edi, ebp
shl edx, 7
mov esi, dword [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 8], ebp
lea ecx, [esi + edx + 0xc]
mov eax, dword [esi + edx + 0x50]
mov edx, dword [esi + edx + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._slash___pureZuri_u383_16
sub esp, 0xc
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
jne 0x4be5b0
mov ecx, ebp
call sym._dollar___pureZuri_u409_4
cmp byte [esi], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edx
mov edi, eax
jne 0x4be5b0
mov ecx, ebp
call sym._eqdestroy___pureZuri_u213_4
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
cmp byte [eax], 0
jne 0x4be517
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov eax, dword [eax]
cmp eax, dword [esp + 0x28]
jle 0x4be590
mov eax, dword [esp + 0x20]
mov ecx, 0x11
mov edi, ebp
mov edx, dword [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], ebp
lea ecx, [edx + eax]
mov eax, dword [esp + 0x44]
lea edx, [edx + eax + 0x4c]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._slash___pureZuri_u383_16
sub esp, 0xc
mov edi, dword [esp + 0x24]
cmp byte [edi], 0
jne 0x4be5e0
mov ecx, ebp
call sym._dollar___pureZuri_u409_4
cmp byte [edi], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], edx
jne 0x4be5e0
mov ecx, ebp
call sym._eqdestroy___pureZuri_u213_4
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x4be50b
mov eax, dword [esp + 0x40]
mov edx, dword [0x4efd0c]
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], edi
mov dword [esp + 0xc], 2
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [0x4efd08]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._nsuAddf_20
sub esp, 0x10
test edi, edi
je 0x4be517
test dword [edi], 0x40000000
je 0x4be570
test esi, esi
je 0x4be523
test dword [esi], 0x40000000
je 0x4be580
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
jne 0x4be33b
add ebx, 1
cmp ebx, dword [esp + 0x34]
je 0x4be33b
mov eax, dword [esp + 0x30]
mov edx, dword [eax + ebx*4 + 4]
test edx, edx
js 0x4be530
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp edx, eax
jl 0x4be3d0
sub eax, 1
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._raiseIndexError2
jmp 0x4be523
mov dword [esp], edi
call sym._deallocShared
jmp 0x4be517
mov dword [esp], esi
call sym._deallocShared
jmp 0x4be523
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym._raiseIndexError2
jmp 0x4be517
mov esi, dword [esp + 0x2c]
jmp 0x4be517
mov edi, dword [esp + 0x28]
mov esi, ebx
jmp 0x4be2a6
test edi, edi
je 0x4be210
mov esi, ebx
jmp 0x4be1c7
mov edi, dword [esp + 0x38]
jmp 0x4be50b
mov eax, dword [esp + 0x4c]
mov edx, dword [0x4efcf4]
mov ebp, dword [esp + 0x24]
mov ebx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov eax, dword [0x4efcf0]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], ecx
call sym._nosjoinPath_16
sub esp, 0x10
cmp byte [ebp], 0
mov ebx, edx
mov dword [esp + 0x20], eax
jne 0x4be808
lea ecx, [esp + 0x54]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
call sym._eqwasMoved___stdZassertions_u27_4
mov eax, dword [0x4efcd0]
mov edx, dword [0x4efcd4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._nsuFormatSingleElem_16
sub esp, 0x10
cmp byte [ebp], 0
mov esi, edx
jne 0x4be7fc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
call sym._writeFile__stdZsyncio_u682_16
sub esp, 0x10
cmp byte [ebp], 0
jne 0x4be7fc
mov eax, dword [0x4efcc0]
mov edx, dword [0x4efcc4]
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0x4ded20
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._findExe__pureZos_u68_20
sub esp, 0x14
mov edi, edx
test eax, eax
je 0x4be7f0
cmp byte [ebp], 1
je 0x4be7f0
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._nospquoteShell_8
sub esp, 8
cmp byte [ebp], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
jne 0x4be7f0
lea ecx, [eax + 0x15]
call sym._rawNewString_4
mov ecx, 0x20
mov dword [esp + 0x24], edx
lea edx, [eax + edx + 4]
mov dword [edx], 0x20746f64
mov dword [edx + 4], 0x6e70542d
mov dword [edx + 8], 0x6f2d2067
mov dword [edx + 0xc], 0x73706564
mov dword [edx + 0x10], 0x676e702e
mov word [edx + 0x14], cx
mov edx, eax
add edx, 0x15
mov dword [esp + 0x20], edx
jo 0x4be8a4
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4be799
add eax, 1
mov ecx, eax
jo 0x4be8b2
test eax, eax
js 0x4be86b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ecx
lea eax, [eax + edx + 4]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
add edx, 4
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x20]
jo 0x4be8b2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call sym._nosexecShellCmd_8
sub esp, 8
cmp byte [ebp], 0
jne 0x4be7f0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4be7cf
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, 0x40000000
je 0x4be85a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4be7f0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, 0x40000000
jne 0x4be7f0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym._deallocShared
test edi, edi
je 0x4be7fc
test dword [edi], 0x40000000
je 0x4be830
test esi, esi
je 0x4be808
test dword [esi], 0x40000000
je 0x4be840
test ebx, ebx
je 0x4be210
test dword [ebx], 0x40000000
jne 0x4be210
mov dword [esp], ebx
call sym._deallocShared
jmp 0x4be210
mov dword [esp], edi
call sym._deallocShared
jmp 0x4be7fc
mov dword [esp], esi
call sym._deallocShared
jmp 0x4be808
call sym._raiseOverflow
jmp 0x4be210
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._deallocShared
jmp 0x4be7cf
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], 0xffffffff
call sym._raiseRangeErrorI
jmp 0x4be799
mov dword [esp + 0x20], eax
call sym._raiseOverflow
jmp 0x4be749
call sym._raiseOverflow
jmp 0x4be799
mov esi, ebx
jmp 0x4be2a6