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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ecc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x4053c2
dec eax
mov dword [edi + 0x7c], eax
test eax, eax
jg 0x4053c2
push 0xc
call fcn.00423e81
mov eax, dword [edi + 0x78]
test eax, eax
jle 0x4053d5
dec eax
mov dword [edi + 0x78], eax
test eax, eax
jg 0x4053d5
push 0xb
jmp 0x4053bd
mov ebx, dword [ebp + 8]
mov byte [esp + 0x14], 0
test ebx, ebx
je 0x4057a6
mov ecx, dword [ebx + 4]
xor edx, edx
lea eax, [ecx - 1]
inc edx
cmp eax, 0x14
ja case.default.0x4053f7
jmp dword [eax*4 + 0x4057d1]
mov eax, dword [edi + 0x60]
and eax, 0x101
cmp eax, edx
je 0x405794
test dword [edi + 0x60], 0x100
jne 0x405422
mov eax, dword [edi]
cmp eax, dword [edi + 0x4c]
je case.0x4053f7.1
mov eax, dword [edi]
cmp byte [eax - 1], 0xa
setne al
mov dword [esp + 0x14], eax
jmp 0x40577e
test byte [edi + 0x60], 2
jne 0x40544e
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je case.0x4053f7.1
cmp byte [eax], 0xa
je case.0x4053f7.1
mov al, dl
jmp 0x40542b
test byte [edi + 0x60], 4
je 0x40545f
mov eax, dword [edi]
cmp eax, dword [edi + 0x4c]
je 0x40546c
test byte [edi + 0x60], 8
je 0x405470
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
jne 0x405470
xor cl, cl
jmp 0x4054ac
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
jne 0x40547e
mov byte [esp + 0x13], 0
jmp 0x405497
mov al, byte [eax]
movsx eax, al
push eax
push 0x449680
call fcn.00424cb0
pop ecx
test eax, eax
pop ecx
setne byte [esp + 0x13]
push 0xffffffffffffffff
push dword [edi]
mov ecx, edi
call fcn.00406351
cmp al, byte [esp + 0x13]
setne cl
xor edx, edx
inc edx
mov al, byte [ebx + 8]
and al, dl
cmp cl, al
jne case.0x4053f7.1
jmp 0x40544e
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x40544e
mov cl, byte [eax]
cmp cl, 0xa
je 0x40544e
cmp cl, 0xd
je 0x40544e
inc eax
mov dword [edi], eax
jmp case.0x4053f7.1
mov eax, dword [edi + 0x60]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
and eax, 0x80
setne al
movzx eax, al
push eax
push dword [edi + 0x5c]
lea eax, [ecx + edx]
push dword [edi + 0x70]
mov ecx, dword [edi]
push eax
push edx
mov edx, dword [edi + 0x50]
call fcn.00405825
add esp, 0x14
cmp eax, dword [edi]
jne 0x4054cf
xor eax, eax
inc eax
jmp 0x40542b
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x405794
push ebx
mov ecx, edi
call fcn.0040639a
test al, al
je 0x405791
mov byte [esp + 0x14], 0
jmp 0x405782
mov eax, dword [edi]
cmp ecx, 0xb
lea esi, [edi + 4]
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
sete bl
mov dword [esp + 0x40], eax
call fcn.0040606e
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x5c], 0
push dword [eax + 0x14]
mov ecx, edi
call fcn.00405385
cmp al, bl
jne 0x405592
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00404ab1
mov byte [esp + 0x14], 1
jmp 0x405598
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
or dword [esp + 0x5c], 0xffffffff
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
call fcn.0040344d
mov ebx, dword [ebp + 8]
jmp case.0x4053f7.1
mov edx, dword [ebx + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov dword [ecx + edx*8], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x14], eax
jae case.0x4053f7.1
lea eax, [edi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
dec edi
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.00404681
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
xor edx, edx
inc edx
shl edx, cl
not edx
and dword [esi], edx
cmp dword [ebx + 0x14], edi
jb 0x4055d9
mov edi, dword [esp + 0x20]
jmp case.0x4053f7.1
cmp byte [edi + 0x65], 0
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
jne 0x40561e
cmp dword [eax + 0x14], 0
je case.0x4053f7.1
push dword [eax + 0x14]
lea eax, [esp + 0x30]
lea ecx, [edi + 4]
push eax
call fcn.00404681
mov ecx, dword [eax + 4]
mov esi, dword [eax]
xor edx, edx
inc edx
shl edx, cl
or dword [esi], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
mov edx, dword [edx + 0x14]
mov eax, dword [edi]
mov dword [ecx + edx*8 + 4], eax
jmp case.0x4053f7.1
mov esi, dword [ebx + 0x14]
push esi
lea eax, [esp + 0x38]
lea ecx, [edi + 4]
push eax
call fcn.00404681
mov ecx, dword [eax + 4]
mov eax, dword [eax]
xor edx, edx
inc edx
shl edx, cl
test dword [eax], edx
je case.0x4053f7.1
mov eax, dword [edi + 0x14]
mov ecx, dword [edi]
mov edx, dword [eax + esi*8]
mov esi, dword [eax + esi*8 + 4]
cmp edx, esi
je 0x4056ae
mov eax, dword [edi + 0x60]
and eax, 0x80
setne al
movzx eax, al
push eax
push dword [edi + 0x5c]
push dword [edi + 0x70]
push esi
push edx
mov edx, dword [edi + 0x50]
call fcn.00405825
mov ecx, eax
add esp, 0x14
cmp ecx, dword [edi]
je 0x405798
mov dword [edi], ecx
jmp case.0x4053f7.1
push ebx
mov ecx, edi
call fcn.004060b1
mov ebx, dword [esp + 0x14]
movzx ebx, bl
test al, al
push 1
pop eax
cmove ebx, eax
mov dword [esp + 0x14], ebx
jmp case.0x4053f7.12
mov eax, dword [ebx + 8]
shr eax, 1
and al, dl
movzx eax, al
push 0
push eax
push ebx
mov ecx, edi
call fcn.004061a2
mov edx, dword [esp + 0x14]
movzx ecx, dl
test al, al
push 1
pop eax
cmove ecx, eax
mov byte [esp + 0x14], cl
jmp case.0x4053f7.12
mov ecx, dword [ebx + 0x14]
mov edx, dword [edi + 0x40]
cmp dword [ecx + 0x24], 0
mov eax, dword [ecx + 0x20]
jne case.0x4053f7.12
push dword [edx + eax*8]
mov eax, dword [ecx + 8]
shr eax, 1
xor ebx, ebx
inc ebx
and al, bl
movzx eax, al
push eax
push ecx
mov ecx, edi
call fcn.004061a2
mov edx, dword [esp + 0x14]
movzx ecx, dl
test al, al
cmove ecx, ebx
jmp 0x4056f9
test dword [edi + 0x60], 0x2020
je 0x405745
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi]
je 0x405752
cmp byte [edi + 0x74], 0
je 0x405758
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x405758
mov byte [esp + 0x14], dl
jmp case.0x4053f7.12
cmp byte [edi + 0x64], 0
je 0x405769
mov ecx, edi
call fcn.004064d9
test al, al
je case.0x4053f7.12
push edi
lea ecx, [edi + 0x20]
call fcn.00404531
xor eax, eax
inc eax
mov byte [edi + 0x64], al
xor ebx, ebx
mov eax, dword [esp + 0x14]
test al, al
jne 0x4057a6
test ebx, ebx
je 0x4057a6
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
jmp 0x4053dd
xor edx, edx
inc edx
mov bl, dl
jmp 0x4057aa
xor eax, eax
lea ebx, [eax + 1]
jmp 0x4057aa
push 0xd
jmp 0x4053bd
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x4057b5
inc eax
mov dword [edi + 0x7c], eax
mov ecx, dword [esp + 0x54]
pop edi
xor eax, eax
test bl, bl
pop esi
sete al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4