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

Disassembly:
jmp 0x4bc9b0
sub esp, 0x64
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x60], eax
mov al, byte [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
xor al, 1
push 0
movzx ebp, al
mov ebx, ecx
push 1
add ebp, ebp
mov dword [esp + 0x30], ebx
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
call fcn.00402f59
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4bca78
cmp byte [ecx], 0
je 0x4bca78
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4bca10
mov ebp, dword [esp + 0x10]
sub esi, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub eax, edx
cmp esi, eax
jbe 0x4bca34
push esi
push ecx
mov ecx, ebp
call fcn.0041214d
jmp 0x4bca46
test esi, esi
je 0x4bca4a
push esi
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebp + 0xc], esi
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
cmp eax, 2
jae 0x4bca67
push 2
push 0x924068
mov ecx, ebp
call fcn.0041214d
jmp 0x4bca74
mov ax, word [0x924068]
mov word [ecx], ax
add dword [ebp + 0xc], 2
mov ebp, dword [esp + 0x1c]
cmp dword [ebx + 0x18], 0
je 0x4bcb76
mov edx, dword [ebx + 0x1c]
lea eax, [ebx + 8]
mov ecx, eax
cmp edx, 0x10
jb 0x4bca91
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
cmp esi, 1
jne 0x4bcad7
cmp byte [ecx], 0x2d
jne 0x4bcad7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub eax, edx
cmp eax, 7
jae 0x4bcab8
push 7
push str._stdin_
jmp 0x4bcae4
mov eax, dword [str._stdin_]
mov dword [edx], eax
mov ax, word [0x928174]
mov word [edx + 4], ax
mov al, byte [0x928176]
mov byte [edx + 6], al
add dword [ecx + 0xc], 7
jmp 0x4bcae9
cmp edx, 0x10
jb 0x4bcade
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.0041214d
cmp dword [ebx + 0x20], 0xffffffff
je 0x4bcb4a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jb 0x4bcb06
push 0x3a
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcb0c
mov byte [ecx], 0x3a
inc dword [eax + 0xc]
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
call fcn.0040517d
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x4bcb4a
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jb 0x4bcb3a
push 0x3a
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcb40
mov byte [ecx], 0x3a
inc dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
push esi
call fcn.0040517d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub eax, edx
cmp eax, 2
jae 0x4bcb69
push 2
push 0x924068
call fcn.0041214d
jmp 0x4bcb76
mov ax, word [0x924068]
mov word [edx], ax
add dword [ecx + 0xc], 2
lea ecx, [esp + 0x10]
call fcn.0040d18e
cmp byte [esp + 0x84], 0
je case.default.0x4bcb99
mov eax, dword [ebx + 0x28]
cmp eax, 3
ja case.default.0x4bcb99
jmp dword [eax*4 + 0x4bd140]
push dword [esp + 0x18]
sub esp, 8
mov eax, esp
push edi
mov dword [eax], 0x9236bc
mov dword [eax + 4], 0
call fcn.0040196a
jmp 0x4bcc16
push dword [esp + 0x18]
sub esp, 8
mov eax, esp
push edi
mov dword [eax], 0x9236bc
mov dword [eax + 4], 0
call fcn.004085df
jmp 0x4bcc16
push dword [esp + 0x18]
sub esp, 8
mov eax, esp
push edi
mov dword [eax], 0x9236bc
mov dword [eax + 4], 0
call fcn.00407752
jmp 0x4bcc16
push dword [esp + 0x18]
sub esp, 8
mov eax, esp
push edi
mov dword [eax], 0x9236bc
mov dword [eax + 4], 0
call fcn.0040d792
add esp, 0x10
push 0
push 1
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
call fcn.00402f59
cmp dword [ebx + 0x40], 0x10
lea ecx, [ebx + 0x2c]
jb 0x4bcc3c
mov ecx, dword [ebx + 0x2c]
push dword [ebx + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0041214d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jb 0x4bcc60
push 0xa
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcc66
mov byte [ecx], 0xa
inc dword [eax + 0xc]
lea ecx, [esp + 0x10]
call fcn.0040d18e
cmp dword [ebx + 0x20], 0xffffffff
je 0x4bd125
cmp dword [ebx + 0x24], 0xffffffff
je 0x4bd125
cmp dword [ebx + 0x58], 0x10
lea ebp, [ebx + 0x44]
mov dword [esp + 0x34], ebp
mov eax, ebp
jb 0x4bcc95
mov eax, dword [ebp]
mov esi, dword [ebp + 0x10]
push 0x4bc9a0
add esi, eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040cd60
add esp, 0xc
cmp dword [eax], esi
je 0x4bcce7
sub esp, 8
mov eax, ebp
cmp dword [ebp + 0x14], 0x10
mov ecx, esp
jb 0x4bccc1
mov eax, dword [ebp]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ecx + 4], eax
call fcn.004bd340
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004087b5
add esp, 0x64
ret 0x10
mov esi, dword [ebx + 0x54]
lea ecx, [esp + 0x40]
push 0x20
mov dword [esp + 0x14], esi
lea eax, [esi + 1]
push eax
call fcn.0040a0b0
mov eax, dword [ebx + 0x60]
xor ecx, ecx
sub eax, dword [ebx + 0x5c]
sar eax, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4bcd91
mov edi, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x38]
lea ebx, [esp + 0x2c]
lea esi, [esp + 0x40]
mov ebp, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, dword [esp + 0x50]
cmp eax, ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
cmovae ebx, edx
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], ecx
cmovae esi, dword [esp + 0x40]
cmovae eax, dword [esp + 0x40]
mov ecx, dword [ebx]
add eax, ebp
add ecx, esi
sub ecx, eax
push ecx
push 0x7e
push eax
call fcn.00410fd2
mov ecx, dword [esp + 0x24]
add esp, 0xc
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x24]
jne 0x4bcd20
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
push dword [ebx + 0x54]
mov eax, dword [ebx + 4]
sub eax, dword [ebx + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0xf
call fcn.004093c7
add esp, 0xc
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebx + 0x68]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebx + 0x6c]
mov dword [ecx + 4], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004bc530
mov ecx, dword [ebx + 0x24]
lea eax, [esp + 0x58]
add esp, 0x18
cmp ecx, esi
ja 0x4bce02
cmp dword [esp + 0x54], 0x10
cmovae eax, dword [esp + 0x40]
mov byte [ecx + eax], 0x5e
jmp 0x4bce10
cmp dword [esp + 0x54], 0x10
cmovae eax, dword [esp + 0x40]
mov byte [eax + esi], 0x5e
mov ebx, dword [esp + 0x54]
lea edx, [esp + 0x40]
mov esi, dword [esp + 0x50]
cmp ebx, 0x10
cmovae edx, dword [esp + 0x40]
test esi, esi
je 0x4bce4e
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x20
jne 0x4bce4a
nop word [eax + eax]
cmp ecx, edx
je 0x4bce4e
dec ecx
cmp byte [ecx], 0x20
je 0x4bce40
sub ecx, edx
jmp 0x4bce51
or ecx, 0xffffffff
inc ecx
cmp esi, ecx
jb 0x4bd13a
cmp ebx, 0x10
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
sub esp, 8
mov byte [eax + ecx], 0
mov ecx, esp
cmp dword [ebp + 0x14], 0x10
mov eax, ebp
jb 0x4bce7e
mov eax, dword [ebp]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ecx + 4], eax
call fcn.004bd340
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
push 0
push 1
push 2
call fcn.00402f59
mov eax, dword [esp + 0x50]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x38], eax
test eax, eax
je 0x4bcf59
mov edi, dword [esp + 0x28]
cmp esi, dword [edi + 0x54]
jae 0x4bcf16
cmp dword [ebp + 0x14], 0x10
mov eax, ebp
jb 0x4bced2
mov eax, dword [ebp]
cmp byte [eax + esi], 9
jne 0x4bcf16
nop dword [eax + eax]
push esi
lea ecx, [esp + 0x44]
call fcn.00403b0c
mov cl, byte [eax]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x10], cl
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 8]
jb 0x4bcf09
push dword [esp + 0x10]
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcf0e
mov byte [edx], cl
inc dword [eax + 0xc]
inc ebx
test bl, 7
jne 0x4bcee0
jmp 0x4bcf4a
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
mov cl, byte [eax + esi]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x24], cl
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 8]
jb 0x4bcf44
push dword [esp + 0x24]
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcf49
mov byte [edx], cl
inc dword [eax + 0xc]
inc ebx
inc esi
cmp esi, dword [esp + 0x38]
jne 0x4bcec2
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jb 0x4bcf70
push 0xa
mov ecx, eax
call fcn.0040c4b4
jmp 0x4bcf76
mov byte [ecx], 0xa
inc dword [eax + 0xc]
lea ecx, [esp + 0x2c]
call fcn.0040d18e
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4bd0a6
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x18], ebp
test eax, eax
je 0x4bd08d
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x58]
nop word [eax + eax]
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 0x54]
jae 0x4bd045
mov eax, dword [esp + 0x34]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4bcfcb
mov ecx, dword [eax]
cmp byte [ecx + esi], 9
jne 0x4bd045
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x58]
cmp edx, 0x10
cmovae eax, ebx
mov al, byte [eax + esi]
mov byte [esp + 0x10], al
cmp ecx, dword [edi + 8]
jb 0x4bcffe
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040c4b4
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x20], ebp
jmp 0x4bd00a
mov byte [ecx], al
inc dword [edi + 0xc]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x58]
mov ebx, dword [esp + 0x58]
lea eax, [esi + 1]
cmp edx, 0x10
cmovae ecx, ebx
cmp byte [ecx + esi], 0x20
cmove eax, esi
mov esi, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
test al, 7
je 0x4bd03b
cmp esi, dword [esp + 0x1c]
jne 0x4bcfd1
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x4bd080
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x58]
cmp edx, 0x10
cmovae eax, ebx
mov al, byte [eax + esi]
mov byte [esp + 0x24], al
cmp ecx, dword [edi + 8]
jb 0x4bd06b
push dword [esp + 0x24]
mov ecx, edi
call fcn.0040c4b4
jmp 0x4bd070
mov byte [ecx], al
inc dword [edi + 0xc]
mov eax, dword [edi + 0xc]
inc ebp
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x18], ebp
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x4bcfb0
jmp 0x4bd090
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
jb 0x4bd0a0
push 0xa
mov ecx, edi
call fcn.0040c4b4
jmp 0x4bd0a6
mov byte [eax], 0xa
inc dword [edi + 0xc]
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
jb 0x4bd0d8
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd0ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd115
push edx
push ecx
call fcn.004036ca
add esp, 8
mov edx, dword [esp + 0x54]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], 0
cmp edx, 0x10
jb 0x4bd125
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd11b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bd11b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x64
ret 0x10
call fcn.0041505f
nop
mov al, byte [0xbe004bcb]
retf