Function at 0x406320
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bab78
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
push str.Submit_n
call dword [sym.imp.MSVCR80.dll_printf]
mov eax, 0xfffffe00
and dword [esp + 0x38], eax
xor ecx, ecx
add esp, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x98], 1
and dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
and dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
push 0x4beb1c
lea ebx, [esp + 0x30]
mov byte [esp + 0x9c], 6
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.004b07c0
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 5
call fcn.004b0720
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 8]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
push 0x4beb18
mov byte [esp + 0x9c], 7
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.004b07c0
lea eax, [esp + 0x1c]
mov byte [esp + 0x98], 5
call fcn.004b0720
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add edi, 0xc
mov ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
nop
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
add eax, 0xc
test edi, edi
je 0x406451
cmp edi, eax
je 0x406457
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x4065cc
test edi, edi
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x40646b
call esi
cmp ebx, dword [edi + 4]
jne 0x406472
call esi
mov eax, dword [ebx + 0x30]
sub eax, 0
je 0x40654c
sub eax, 1
je 0x4064ed
sub eax, 1
jne 0x4065b6
cmp ebx, dword [edi + 4]
jne 0x406493
call esi
cmp dword [ebx + 0x58], 0x10
jb 0x40649e
mov eax, dword [ebx + 0x44]
jmp 0x4064a1
lea eax, [ebx + 0x44]
push eax
lea esi, [esp + 0x80]
call fcn.004b04e0
mov byte [esp + 0x98], 0xa
cmp ebx, dword [edi + 4]
jne 0x4064c1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x28], 0x10
jb 0x4064cc
mov ebx, dword [ebx + 0x14]
jmp 0x4064cf
add ebx, 0x14
push ebx
lea ebx, [esp + 0x30]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x7c]
call fcn.004b07c0
lea eax, [esp + 0x7c]
jmp 0x4065a9
cmp ebx, dword [edi + 4]
jne 0x4064f4
call esi
mov edx, dword [esp + 0x64]
mov eax, dword [ebx + 0x38]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], eax
mov byte [esp + 0x98], 9
cmp ebx, dword [edi + 4]
jne 0x406523
call esi
cmp dword [ebx + 0x28], 0x10
jb 0x40652e
mov ebx, dword [ebx + 0x14]
jmp 0x406531
add ebx, 0x14
push ebx
lea ebx, [esp + 0x30]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x5c]
call fcn.004b07c0
lea eax, [esp + 0x5c]
jmp 0x4065a9
cmp ebx, dword [edi + 4]
jne 0x406553
call esi
mov ecx, dword [esp + 0x74]
mov eax, dword [ebx + 0x38]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], eax
mov byte [esp + 0x98], 8
cmp ebx, dword [edi + 4]
jne 0x406582
call esi
cmp dword [ebx + 0x28], 0x10
jb 0x40658d
mov ebx, dword [ebx + 0x14]
jmp 0x406590
add ebx, 0x14
push ebx
lea ebx, [esp + 0x30]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x6c]
call fcn.004b07c0
lea eax, [esp + 0x6c]
mov byte [esp + 0x98], 5
call fcn.004b0720
lea esi, [esp + 0x1c]
call fcn.00408fc0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x406440
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jbe 0x4067ec
lea ecx, [eax + 0x18]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov ebx, ecx
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
test ebx, ebx
mov edi, dword [ecx + 4]
je 0x4065fd
cmp ebx, ecx
je 0x406603
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x4067d3
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x406617
call edi
cmp esi, dword [ebx + 4]
jne 0x40661e
call edi
mov eax, dword [esi + 0x30]
sub eax, 0
je 0x406746
sub eax, 1
je 0x4066e7
sub eax, 1
jne 0x4067b9
cmp esi, dword [ebx + 4]
jne 0x406643
call edi
cmp dword [esi + 0x58], 0x10
jb 0x40664e
mov edi, dword [esi + 0x44]
jmp 0x406651
lea edi, [esi + 0x44]
mov edx, dword [esp + 0x74]
and edx, 0xffffff04
or edx, 0x104
test byte [0x4d7130], 1
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
jne 0x406694
or dword [0x4d7130], 1
push 0x4bc720
mov dword [0x4d6e80], 0x4cbddc
call fcn.004b779a
add esp, 4
mov ecx, dword [0x4d631c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
push edi
call edx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x98], 0xd
cmp esi, dword [ebx + 4]
jne 0x4066bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x28], 0x10
jb 0x4066c6
mov esi, dword [esi + 0x14]
jmp 0x4066c9
add esi, 0x14
push esi
lea ebx, [esp + 0x40]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x6c]
call fcn.004b07c0
lea eax, [esp + 0x6c]
jmp 0x4067ac
cmp esi, dword [ebx + 4]
jne 0x4066ee
call edi
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0x38]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], eax
mov byte [esp + 0x98], 0xc
cmp esi, dword [ebx + 4]
jne 0x40671d
call edi
cmp dword [esi + 0x28], 0x10
jb 0x406728
mov esi, dword [esi + 0x14]
jmp 0x40672b
add esi, 0x14
push esi
lea ebx, [esp + 0x40]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x5c]
call fcn.004b07c0
lea eax, [esp + 0x5c]
jmp 0x4067ac
cmp esi, dword [ebx + 4]
jne 0x40674d
call edi
mov edx, dword [esp + 0x84]
mov eax, dword [esi + 0x38]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x7c], eax
mov byte [esp + 0x98], 0xb
cmp esi, dword [ebx + 4]
jne 0x406785
call edi
cmp dword [esi + 0x28], 0x10
jb 0x406790
mov esi, dword [esi + 0x14]
jmp 0x406793
add esi, 0x14
push esi
lea ebx, [esp + 0x40]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x7c]
call fcn.004b07c0
lea eax, [esp + 0x7c]
mov byte [esp + 0x98], 5
call fcn.004b0720
lea esi, [esp + 0x1c]
call fcn.00408fc0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x4065f2
push str.ptnlcrisvwoum
lea ebx, [esp + 0x30]
call fcn.004b11a0
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.004b07c0
lea ecx, [esp + 0x4c]
call fcn.004b0e20
push eax
lea ecx, [esp + 0x50]
call fcn.004b0ea0
mov esi, eax
lea eax, [esp + 0x2c]
call fcn.004b07c0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb8]
push edx
lea edx, [esp + 0x50]
push edx
call eax
test al, al
lea eax, [esp + 0x4c]
mov byte [esp + 0x98], 3
call fcn.004b0720
lea eax, [esp + 0x3c]
mov byte [esp + 0x98], 1
call fcn.004b0720
lea eax, [esp + 0x2c]
mov dword [esp + 0x98], 0xffffffff
call fcn.004b0720
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8