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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566219
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
lea ecx, [esp + 0x1ac]
call fcn.004bd580
mov dword [esp + 0x390], 0
call fcn.004bdbc0
push eax
lea ecx, [esp + 0x1b0]
call fcn.004bef20
lea ecx, [esp + 0x3c]
call fcn.004bd4b0
mov edi, dword [ebp + 8]
mov byte [esp + 0x390], 1
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x4be577
lea ebx, [ebx]
mov eax, dword [esi]
lea ebx, [esi + 0x14]
mov edx, dword [esp + 0x64]
cmp edx, 0x10
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
cmovae eax, ecx
cmp eax, 0x58ccc0
ja 0x4be05f
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x50]
cmp edx, 0x10
cmovae ecx, dword [esp + 0x50]
add eax, ecx
cmp eax, 0x58ccc0
jbe 0x4be05b
cmp edx, 0x10
lea ecx, [esp + 0x50]
push 0
cmovae ecx, dword [esp + 0x54]
mov eax, 0x58ccc0
sub eax, ecx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, eax
call fcn.0040eaa9
jmp 0x4be074
mov ecx, dword [esp + 0x50]
cmp edx, 0x10
mov dword [esp + 0x60], 0
lea eax, [esp + 0x50]
cmovae eax, ecx
mov byte [eax], 0
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x4be085
mov eax, dword [ebx]
jmp 0x4be087
mov eax, ebx
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4be1b7
mov ecx, dword [esp + 0x60]
cmp eax, ecx
ja 0x4be0cd
cmp dword [esp + 0x64], 0x10
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], eax
cmovae ecx, dword [esp + 0x50]
mov byte [ecx + eax], 0
jmp 0x4be189
mov edx, eax
or eax, 0xffffffff
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x20], edx
cmp eax, edx
jbe 0x4be975
test edx, edx
je 0x4be185
add edx, ecx
mov dword [esp + 0x18], edx
cmp edx, 0xfffffffe
ja 0x4be975
cmp dword [esp + 0x64], edx
jae 0x4be110
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.0040ed42
mov edx, dword [esp + 0x18]
jmp 0x4be128
test edx, edx
jne 0x4be12e
cmp dword [esp + 0x64], 0x10
lea eax, [esp + 0x50]
mov dword [esp + 0x60], edx
cmovae eax, dword [esp + 0x50]
mov byte [eax], dl
mov ecx, dword [esp + 0x60]
test edx, edx
setne al
test al, al
je 0x4be185
cmp dword [esp + 0x20], 1
lea eax, [esp + 0x50]
jne 0x4be150
cmp dword [esp + 0x64], 0x10
cmovae eax, dword [esp + 0x50]
mov byte [eax + ecx], 0
jmp 0x4be16f
cmp dword [esp + 0x64], 0x10
push dword [esp + 0x20]
cmovae eax, dword [esp + 0x54]
add eax, ecx
push 0
push eax
call fcn.005278d0
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x64], 0x10
lea eax, [esp + 0x50]
mov dword [esp + 0x60], edx
cmovae eax, dword [esp + 0x50]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x64], 0x10
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
cmp dword [ebx + 0x14], 8
jb 0x4be19f
mov ebx, dword [ebx]
push 0
push 0
push eax
push ecx
push dword [esp + 0x2c]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x68]
lea ebx, [esi + 0x2c]
cmp edx, 0x10
cmovae eax, ecx
cmp eax, 0x58ccc0
ja 0x4be214
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x68]
cmp edx, 0x10
cmovae ecx, dword [esp + 0x68]
add eax, ecx
cmp eax, 0x58ccc0
jbe 0x4be210
cmp edx, 0x10
lea ecx, [esp + 0x68]
push 0
cmovae ecx, dword [esp + 0x6c]
mov eax, 0x58ccc0
sub eax, ecx
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, eax
call fcn.0040eaa9
jmp 0x4be229
mov ecx, dword [esp + 0x68]
cmp edx, 0x10
mov dword [esp + 0x78], 0
lea eax, [esp + 0x68]
cmovae eax, ecx
mov byte [eax], 0
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ecx
jb 0x4be23a
mov eax, dword [ebx]
jmp 0x4be23c
mov eax, ebx
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4be36c
mov ecx, dword [esp + 0x78]
cmp eax, ecx
ja 0x4be282
cmp dword [esp + 0x7c], 0x10
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], eax
cmovae ecx, dword [esp + 0x68]
mov byte [ecx + eax], 0
jmp 0x4be33e
mov edx, eax
or eax, 0xffffffff
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x18], edx
cmp eax, edx
jbe 0x4be975
test edx, edx
je 0x4be33a
add edx, ecx
mov dword [esp + 0x20], edx
cmp edx, 0xfffffffe
ja 0x4be975
cmp dword [esp + 0x7c], edx
jae 0x4be2c5
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.0040ed42
mov edx, dword [esp + 0x20]
jmp 0x4be2dd
test edx, edx
jne 0x4be2e3
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
mov dword [esp + 0x78], edx
cmovae eax, dword [esp + 0x68]
mov byte [eax], dl
mov ecx, dword [esp + 0x78]
test edx, edx
setne al
test al, al
je 0x4be33a
cmp dword [esp + 0x18], 1
lea eax, [esp + 0x68]
jne 0x4be305
cmp dword [esp + 0x7c], 0x10
cmovae eax, dword [esp + 0x68]
mov byte [ecx + eax], 0
jmp 0x4be324
cmp dword [esp + 0x7c], 0x10
push dword [esp + 0x18]
cmovae eax, dword [esp + 0x6c]
add eax, ecx
push 0
push eax
call fcn.005278d0
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
mov dword [esp + 0x78], edx
cmovae eax, dword [esp + 0x68]
mov byte [edx + eax], 0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x7c], 0x10
lea ecx, [esp + 0x68]
cmovae ecx, dword [esp + 0x68]
cmp dword [ebx + 0x14], 8
jb 0x4be354
mov ebx, dword [ebx]
push 0
push 0
push eax
push ecx
push dword [esp + 0x2c]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x80]
lea ebx, [esi + 0x44]
cmp edx, 0x10
cmovae eax, ecx
cmp eax, 0x58ccc0
ja 0x4be3e7
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x80]
cmp edx, 0x10
cmovae ecx, dword [esp + 0x80]
add eax, ecx
cmp eax, 0x58ccc0
jbe 0x4be3e0
cmp edx, 0x10
lea ecx, [esp + 0x80]
push 0
cmovae ecx, dword [esp + 0x84]
mov eax, 0x58ccc0
sub eax, ecx
push eax
lea eax, [esp + 0x88]
push eax
mov ecx, eax
call fcn.0040eaa9
jmp 0x4be402
mov ecx, dword [esp + 0x80]
cmp edx, 0x10
mov dword [esp + 0x90], 0
lea eax, [esp + 0x80]
cmovae eax, ecx
mov byte [eax], 0
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x20], ecx
jb 0x4be413
mov eax, dword [ebx]
jmp 0x4be415
mov eax, ebx
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4be55b
mov ecx, dword [esp + 0x90]
cmp eax, ecx
ja 0x4be46a
cmp dword [esp + 0x94], 0x10
lea ecx, [esp + 0x80]
mov dword [esp + 0x90], eax
cmovae ecx, dword [esp + 0x80]
mov byte [ecx + eax], 0
jmp 0x4be524
mov edx, eax
or eax, 0xffffffff
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x1c], edx
cmp eax, edx
jbe 0x4be975
test edx, edx
je 0x4be520
add edx, ecx
mov dword [esp + 0x18], edx
cmp edx, 0xfffffffe
ja 0x4be975
cmp dword [esp + 0x94], edx
jae 0x4be4b3
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.0040ed42
mov edx, dword [esp + 0x18]
jmp 0x4be4d7
test edx, edx
jne 0x4be4e0
cmp dword [esp + 0x94], 0x10
lea eax, [esp + 0x80]
mov dword [esp + 0x90], edx
cmovae eax, dword [esp + 0x80]
mov byte [eax], dl
mov ecx, dword [esp + 0x90]
test edx, edx
setne al
test al, al
je 0x4be520
push 0
push dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0043e6b9
cmp dword [esp + 0x94], 0x10
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x18]
cmovae eax, dword [esp + 0x80]
mov dword [esp + 0x90], ecx
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], 0x10
lea ecx, [esp + 0x80]
cmovae ecx, dword [esp + 0x80]
cmp dword [ebx + 0x14], 8
jb 0x4be543
mov ebx, dword [ebx]
push 0
push 0
push eax
push ecx
push dword [esp + 0x30]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x368]
call fcn.004c1fa0
add esi, 0x5c
cmp esi, edi
jne 0x4bdfe0
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x30]
mov byte [esp + 0x390], 3
push eax
lea ecx, [esp + 0x1b0]
call fcn.004c6520
push dword [esp + 0x34]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xa0]
push edi
call fcn.0040eb60
cmp dword [esp + 0xb0], 0x10
lea eax, [esp + 0x9c]
push dword [esp + 0xac]
cmovae eax, dword [esp + 0xa0]
push eax
lea eax, [esp + 0xbc]
push 0x589404
push eax
call fcn.0045120f
add esp, 0x10
mov byte [esp + 0x390], 4
lea ecx, [esp + 0xb4]
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xc4]
cmovae ecx, dword [esp + 0xb4]
push dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x28], 0
cmp dword [esp + 0xcc], 0x10
lea ecx, [esp + 0xb8]
push eax
cmovae ecx, dword [esp + 0xbc]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004d1400
lea ecx, [esp + 0x12c]
mov byte [esp + 0x390], 5
call fcn.004c2130
mov byte [esp + 0x390], 6
lea ecx, [esp + 0x114]
push 8
push str.qbpcstat
mov dword [esp + 0x13c], 0
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
call fcn.0040eb60
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x11c]
mov byte [esp + 0x398], 7
push eax
lea ecx, [esp + 0x144]
call fcn.0040eaa9
mov byte [esp + 0x390], 6
cmp dword [esp + 0x128], 0x10
jb 0x4be70e
push dword [esp + 0x114]
call fcn.0052558c
add esp, 4
push 4
push str.stat
lea ecx, [esp + 0x104]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
call fcn.0040eb60
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x104]
mov byte [esp + 0x398], 8
push eax
lea ecx, [esp + 0x15c]
call fcn.0040eaa9
mov byte [esp + 0x390], 6
cmp dword [esp + 0x110], 0x10
jb 0x4be780
push dword [esp + 0xfc]
call fcn.0052558c
add esp, 4
push 5
push str.crypt
lea ecx, [esp + 0xec]
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
call fcn.0040eb60
lea eax, [esp + 0x24]
mov byte [esp + 0x390], 9
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x190]
call fcn.004c6780
cmp dword [esp + 0xf8], 0x10
jb 0x4be7eb
push dword [esp + 0xe4]
call fcn.0052558c
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
lea eax, [esp + 0xcc]
mov byte [esp + 0x390], 0xa
push eax
lea ecx, [esp + 0x130]
call fcn.004c2280
lea eax, [esp + 0xcc]
push eax
call fcn.004c0280
cmp dword [esp + 0xe0], 0x10
mov esi, eax
jb 0x4be84d
push dword [esp + 0xcc]
call fcn.0052558c
add esp, 4
push dword [esp + 0x19c]
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
call fcn.00529e12
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x18c]
add esp, 4
push eax
push dword [eax]
lea eax, [esp + 0x24]
push eax
call fcn.004c4740
push dword [esp + 0x188]
call fcn.0052558c
add esp, 4
lea ecx, [esp + 0x12c]
call fcn.004bf0e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4be8c1
push eax
call fcn.0052558c
add esp, 4
cmp dword [esp + 0xc8], 0x10
jb 0x4be8da
push dword [esp + 0xb4]
call fcn.0052558c
add esp, 4
push edi
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], 0
mov byte [esp + 0xb8], 0
call fcn.00529e12
add esp, 4
cmp dword [esp + 0xb0], 0x10
jb 0x4be91a
push dword [esp + 0x9c]
call fcn.0052558c
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
call fcn.004bf000
lea ecx, [esp + 0x1ac]
call fcn.004be980
mov eax, esi
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 4
push str.string_too_long
call fcn.0050a84c
int3