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

Disassembly:
push 0xffffffffffffffff
push 0x528ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov esi, ecx
mov ebx, edx
mov edi, dword [esp + 0x90]
movsx eax, byte [edi + 1]
movsx ecx, byte [ebx + 1]
cmp eax, 1
je 0x4227f9
cmp ecx, 1
je 0x422a0c
cmp eax, 4
je 0x4227c5
cmp ecx, 4
je 0x4227c5
cmp eax, 2
je 0x42276f
cmp ecx, 2
je 0x42276f
cmp eax, 3
je 0x4226f8
cmp ecx, 3
jne 0x422c72
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
push ebp
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov dword [esp + 0x94], 0
call fcn.0041dfc0
push ebp
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0041dfc0
lea eax, [esp + 0x1c]
lea edx, [esp + 0x14]
call fcn.004259c0
lea edi, [esp + 0x44]
mov bl, al
mov dword [esp + 0x88], 0xffffffff
call fcn.0041b180
mov al, bl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push ebp
push esi
mov ecx, ebx
call fcn.0041d5f0
fstp qword [esp + 0x1c]
push ebp
push esi
mov ecx, edi
call fcn.0041d5f0
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x44
jp 0x4227ac
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push ebp
push esi
mov ecx, ebx
call fcn.0041cff0
push ebp
push esi
mov ecx, edi
mov bl, al
call fcn.0041cff0
xor edx, edx
cmp al, bl
sete dl
mov al, dl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
cmp ecx, 1
jne 0x422a04
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
push ebp
push esi
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov dword [esp + 0x94], 1
call fcn.0041ea90
push ebp
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.0041ea90
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x68]
je 0x422951
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
jmp 0x422860
mov dword [esp + 0x90], eax
cmp eax, ecx
je 0x42293c
mov esi, dword [ebp]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x90]
lea eax, [esp + 0x28]
push esi
push eax
mov byte [esp + 0x90], 2
call fcn.0041b4a0
mov ecx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
mov edi, eax
call fcn.0041b4a0
mov ecx, dword [edi]
mov eax, dword [eax]
add esp, 0x10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4228de
test dx, dx
je 0x4228da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4228de
add eax, 4
add ecx, 4
test dx, dx
jne 0x4228b8
xor eax, eax
jmp 0x4228e3
sbb eax, eax
sbb eax, 0xffffffff
mov byte [esp + 0x88], 1
test eax, eax
mov eax, dword [esi]
je 0x422990
cmp eax, ebx
je 0x422912
lea esp, [esp]
mov edi, dword [eax]
push eax
call dword [0x56b964]
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x422900
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esi], ebx
mov ecx, dword [esp + 0x58]
add eax, 8
mov dword [esp + 0x90], eax
cmp eax, ecx
jne 0x42286f
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
add edx, 8
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x68]
jne 0x422860
mov dword [esp + 0x88], 0xffffffff
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x422982
lea ebx, [ebx]
mov esi, dword [eax]
push eax
call dword [0x56b964]
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x422970
mov eax, dword [esp + 0x40]
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x422c72
cmp eax, ebx
je 0x4229a6
mov edi, dword [eax]
push eax
call dword [0x56b964]
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x422994
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], 0xffffffff
mov edi, dword [esp + 0x3c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov eax, dword [ebx]
cmp eax, edi
je 0x4229e2
jmp 0x4229d0
mov esi, dword [eax]
push eax
call dword [0x56b964]
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x4229d0
mov edx, dword [esp + 0x40]
mov dword [ebx], edi
mov dword [ebx + 4], edx
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, edi
mov edi, ebx
mov ebx, eax
mov eax, ecx
cmp eax, 4
jne 0x422a45
push ebp
push esi
mov ecx, ebx
call fcn.0041cff0
push ebp
push esi
mov ecx, edi
mov bl, al
call fcn.0041cff0
xor ecx, ecx
cmp al, bl
sete cl
mov al, cl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
cmp eax, 2
jne 0x422b84
mov eax, dword [ebp]
mov edx, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x90], 3
call fcn.0041d5f0
fstp qword [esp + 0x14]
push ebp
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
call fcn.0041ea90
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x68]
je 0x422b19
mov ebx, 0x7fc00000
nop
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
push eax
lea edx, [esp + 0x34]
push edx
mov ecx, esi
mov byte [esp + 0x90], 4
call fcn.0041b4a0
mov edi, dword [eax]
add esp, 8
mov eax, edi
call fcn.0041be40
test al, al
jne 0x422ae9
mov dword [esp + 0x90], ebx
fld dword [esp + 0x90]
jmp 0x422af4
push 0
push edi
call fcn.00508242
add esp, 8
fcomp qword [esp + 0x14]
mov byte [esp + 0x88], 3
lea edi, [esp + 0x44]
fnstsw ax
test ah, 0x44
jnp 0x422b52
call fcn.0041b180
add esi, 8
cmp esi, dword [esp + 0x68]
jne 0x422aa0
mov dword [esp + 0x88], 0xffffffff
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x422b44
mov esi, dword [eax]
push eax
call dword [0x56b964]
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x422b32
mov eax, dword [esp + 0x40]
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x422c72
call fcn.0041b180
lea edi, [esp + 0x38]
mov dword [esp + 0x88], 0xffffffff
call fcn.0041b180
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
cmp eax, 3
jne 0x422c72
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
push ebp
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov dword [esp + 0x94], 5
call fcn.0041dfc0
push ebp
push esi
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.0041ea90
mov eax, dword [esp + 0x74]
mov esi, eax
cmp eax, dword [esp + 0x78]
je 0x422c5e
mov bl, 6
lea ebx, [ebx]
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
push eax
lea edx, [esp + 0x34]
push edx
mov ecx, esi
mov byte [esp + 0x90], bl
call fcn.0041b4a0
mov ecx, dword [eax]
mov eax, dword [esp + 0x30]
add esp, 8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422c37
test dx, dx
je 0x422c33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422c37
add eax, 4
add ecx, 4
test dx, dx
jne 0x422c11
xor eax, eax
jmp 0x422c3c
sbb eax, eax
sbb eax, 0xffffffff
mov byte [esp + 0x88], 5
lea edi, [esp + 0x44]
test eax, eax
je 0x422b52
call fcn.0041b180
add esi, 8
cmp esi, dword [esp + 0x78]
jne 0x422be0
lea edi, [esp + 0x38]
mov dword [esp + 0x88], 0xffffffff
call fcn.0041b180
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret