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

Disassembly:
push 0xffffffffffffffff
push 0x495338
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4c87c0]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c87c0]
xor eax, esp
push eax
lea eax, [esp + 0x2d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2e4]
mov ebp, ecx
push str.file:___
lea ecx, [esp + 0x1c]
call fcn.004049c0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x2dc], ebx
jle 0x404af1
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401e90
jmp 0x404b6f
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4c9f88
call fcn.00405b60
push 1
push 0x104
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x2e8], 1
call fcn.004121d0
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401e90
push str._help.html
lea ecx, [esp + 0x1c]
call fcn.004047f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2dc], bl
call fcn.004122a0
mov esi, 7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], bx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x2dc], 4
or ecx, eax
jge 0x404bd3
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401780
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp word [edx], bx
mov eax, edx
je 0x404beb
lea esp, [esp]
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x404be0
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.00404610
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, 0x4c9fac
mov byte [esp + 0x1f], 1
call fcn.0040f390
test al, al
jne 0x404c17
mov byte [esp + 0x17], bl
cmp byte [esp + 0x2e8], bl
je 0x404c29
mov byte [0x4c6160], 1
jmp 0x404c35
cmp byte [0x4c6160], bl
je 0x404e00
cmp dword [esp + 0x6c], ebx
je 0x404e00
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
lea edi, [ebp + 0x100]
push edx
mov ecx, edi
call fcn.00404520
mov ecx, dword [ebp + 0x12c]
call fcn.0040dc20
push edi
mov ecx, 0x4c9fac
call fcn.0040ed60
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov ecx, dword [ebp + 0x12c]
lea eax, [esp + 0x90]
push eax
push ebx
mov byte [esp + 0x2e4], 5
call fcn.0040dd80
xor esi, esi
cmp dword [esp + 0x1c], ebx
jle 0x404d9b
lea esp, [esp]
mov eax, 7
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push edi
mov ecx, 0x4c9fac
mov byte [esp + 0x2ec], al
call fcn.0040f5d0
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x404cfb
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
push ecx
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.004033f0
test eax, eax
je 0x404d2b
mov ecx, dword [ebp + 0x12c]
lea eax, [esp + 0x3c]
lea edx, [esi + 1]
push eax
mov dword [ebp + 0x11c], edx
call fcn.0040dd50
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x12c]
push esi
call fcn.0040dd80
cmp dword [esp + 0x54], 8
jb 0x404d50
mov edx, dword [esp + 0x40]
push edx
call fcn.004217dd
add esp, 4
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x2dc], 5
jb 0x404d7d
mov eax, dword [esp + 0x24]
push eax
call fcn.004217dd
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jl 0x404cb0
mov ecx, dword [ebp + 0x12c]
push ebx
call fcn.0040dc70
cmp byte [esp + 0x17], bl
jne 0x404db3
mov dword [ebp + 0x11c], ebx
mov edi, 8
cmp dword [esp + 0xa8], edi
mov byte [0x4c6160], bl
mov byte [esp + 0x2dc], 4
jb 0x404ddf
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004217dd
add esp, 4
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov esi, 7
jmp 0x404e05
mov edi, 8
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov ecx, ebp
call fcn.00435936
lea ecx, [ebp + 0x98]
call fcn.0042d576
cmp dword [esp + 0x70], edi
jb 0x404e34
mov eax, dword [esp + 0x5c]
push eax
call fcn.004217dd
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x404e57
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004217dd
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x2dc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.00465e78
add esp, 0x2cc
ret 8