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

Disassembly:
push 0xffffffffffffffff
push 0x45e68f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [esp + 0xcc]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xd8]
lea esi, [eax + ecx]
lea edx, [edi + 4]
mov dword [esp + 8], eax
push edx
lea eax, [esp + 0xc]
push eax
push esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00402630
test al, al
jne 0x404404
xor eax, eax
jmp 0x404a65
mov ecx, esi
mov esi, dword [esp + 8]
sub ecx, esi
cmp ecx, 0xb
jl 0x4043fd
mov edx, dword [esi]
add esi, 4
mov dword [edi + 0x38], edx
mov eax, dword [esi]
mov dword [edi + 0x34], eax
movzx eax, byte [esi + 4]
add esi, 4
mov ecx, eax
sar eax, 2
inc esi
push ebx
and ecx, 3
and eax, 3
push ebp
mov dword [edi + 0x30], ecx
mov dword [edi + 0x3c], eax
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
shl ebp, 8
add ebp, edx
add esi, 2
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x10], esi
je 0x404538
jmp 0x404460
dec ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0xe0], ebx
call fcn.00402630
test al, al
je 0x404845
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0041a3b0
add esp, 8
test al, al
jne 0x4044c4
mov ecx, dword [esp + 0x30]
push 1
push 0x4623a0
push ecx
push ebx
lea ecx, [esp + 0x2c]
call fcn.00401450
test eax, eax
jne 0x4044fc
mov ebx, dword [edi + 0x88]
mov eax, dword [ebx + 4]
lea esi, [edi + 0x84]
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov ecx, esi
call fcn.00402700
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004027a0
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
xor ebx, ebx
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0xd4], 0xffffffff
jb 0x40451b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044b92d
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
jne 0x404460
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub eax, esi
cmp eax, 2
jl 0x404ac7
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 8
add ebp, ecx
add esi, 2
cmp ebp, ebx
mov dword [esp + 0x10], esi
je 0x40463a
dec ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0xe0], 1
call fcn.00402630
test al, al
je 0x404860
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0041a3b0
add esp, 8
test al, al
jne 0x4045ce
mov eax, dword [esp + 0x30]
push 1
push 0x4623a0
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.00401450
test eax, eax
jne 0x4045fe
mov ebp, dword [edi + 0x7c]
mov edx, dword [ebp + 4]
lea esi, [edi + 0x78]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.00402700
push 1
mov ecx, esi
mov ebx, eax
call fcn.004027a0
mov dword [ebp + 4], ebx
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x18]
mov dword [eax], ebx
xor ebx, ebx
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0xd4], 0xffffffff
jb 0x40461d
mov eax, dword [esp + 0x20]
push eax
call fcn.0044b92d
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
jne 0x404562
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, 2
jl 0x404ac7
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
shl eax, 8
add eax, edx
add esi, 2
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
jle 0x4048b3
lea ecx, [esp + 0x40]
call fcn.004031a0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, edi
mov dword [esp + 0xe0], 2
call fcn.00402630
test al, al
lea ecx, [esp + 0x40]
je 0x404a8b
push 0x46239c
call fcn.00401eb0
lea edx, [esp + 0x40]
push 0x462398
push edx
call fcn.00401f70
add esp, 8
test al, al
jne 0x404a87
mov eax, esi
mov esi, dword [esp + 0x10]
sub eax, esi
cmp eax, 2
jl 0x404a87
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 8
add ebp, ecx
add esi, 2
test ebp, ebp
mov dword [esp + 0x10], esi
jle 0x40478f
jmp 0x404700
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0xe0], 3
call fcn.00402630
test al, al
lea ecx, [esp + 0x1c]
je 0x404a82
push 0x46239c
call fcn.00401eb0
lea edx, [esp + 0x1c]
push 0x462398
push edx
call fcn.00401f70
add esp, 8
test al, al
jne 0x404a7e
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
call fcn.00402e30
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 2
call fcn.00401fd0
inc ebx
cmp ebx, ebp
jl 0x404700
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, 2
jl 0x404a87
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
shl eax, 8
add eax, edx
mov ecx, eax
and ecx, 1
mov dword [esp + 0x78], ecx
mov ecx, eax
shr ecx, 2
and ecx, 1
mov dword [esp + 0x80], ecx
mov edx, eax
shr edx, 1
and edx, 1
mov dword [esp + 0x7c], edx
mov ecx, eax
shr ecx, 4
and ecx, 1
mov edx, eax
shr edx, 3
and edx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], edx
mov ecx, eax
shr ecx, 6
mov edx, eax
shr edx, 5
and ecx, 1
and edx, 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], edx
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 7
shr eax, 9
and ecx, 1
add esi, 2
and edx, 1
and eax, 1
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
je 0x40487b
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x404870
mov dword [esp + 0x38], 1
jmp 0x40487b
cmp dword [esp + 0x34], 0x10
jb 0x404859
mov edx, dword [esp + 0x20]
push edx
call fcn.0044b92d
add esp, 4
xor eax, eax
jmp 0x404a63
lea ecx, [esp + 0x1c]
call fcn.00401fd0
xor eax, eax
jmp 0x404a63
mov dword [esp + 0x88], 0
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0x20]
call fcn.00403f60
lea ecx, [esp + 0x40]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00403200
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
inc eax
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x404670
mov ecx, dword [esp + 0x14]
sub ecx, esi
xor eax, eax
cmp ecx, 7
jl 0x404a63
xor edx, edx
mov dl, byte [esi]
xor ecx, ecx
and edx, 3
mov dword [edi + 0x40], edx
mov al, byte [esi]
shr eax, 2
and eax, 3
mov dword [edi + 0x48], eax
mov cl, byte [esi]
xor eax, eax
shr ecx, 4
and ecx, 3
mov dword [edi + 0x70], ecx
movzx edx, byte [esi]
shr edx, 6
mov dword [edi + 0x74], edx
mov ah, byte [esi + 1]
inc esi
inc esi
mov dword [edi + 0x44], eax
movzx ecx, byte [esi]
mov edx, eax
or edx, ecx
mov dword [edi + 0x44], edx
mov ecx, dword [edi + 0x44]
xor edx, edx
mov dh, byte [esi + 1]
inc esi
inc esi
mov dword [edi + 0x4c], edx
movzx eax, byte [esi]
mov ebp, edx
or ebp, eax
inc esi
cmp ecx, ebx
mov dword [edi + 0x4c], ebp
mov eax, 0xa
jne 0x404927
mov dword [edi + 0x44], eax
cmp dword [edi + 0x4c], ebx
jne 0x40492f
mov dword [edi + 0x4c], eax
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 8
add ebp, ecx
add esi, 2
cmp ebp, ebx
je 0x4049a3
lea ecx, [esp + 0x40]
dec ebp
call fcn.00440e50
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
sub edx, esi
add edx, ecx
push edx
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0xdc], 4
call fcn.00441010
mov esi, eax
cmp esi, ebx
je 0x404a94
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0x50]
call fcn.00403110
lea ecx, [esp + 0x40]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00440e70
cmp ebp, ebx
jne 0x404942
mov ecx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, 2
jl 0x404ac7
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
shl ebp, 8
add ebp, edx
add esi, 2
cmp ebp, ebx
mov dword [esp + 0x10], esi
je 0x404a41
lea esp, [esp]
lea ecx, [esp + 0x90]
dec ebp
call fcn.00440e50
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
sub eax, esi
add eax, ecx
push eax
push esi
lea ecx, [esp + 0x98]
mov dword [esp + 0xdc], 5
call fcn.00441010
mov esi, eax
cmp esi, ebx
je 0x404aac
lea ecx, [esp + 0x90]
push ecx
lea ecx, [edi + 0x60]
call fcn.00403110
lea ecx, [esp + 0x90]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00440e70
cmp ebp, ebx
jne 0x4049d0
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
lea edx, [edi + 0x90]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00402630
mov ecx, dword [esp + 0x10]
neg al
sbb eax, eax
and eax, ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xc8
ret 8
lea ecx, [esp + 0x1c]
call fcn.00401fd0
lea ecx, [esp + 0x40]
call fcn.00403200
xor eax, eax
jmp 0x404a63
lea ecx, [esp + 0x40]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00440e70
xor eax, eax
jmp 0x404a63
lea ecx, [esp + 0x90]
mov dword [esp + 0x10], esi
mov dword [esp + 0xd4], 0xffffffff
call fcn.00440e70
xor eax, eax
jmp 0x404a63