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

Disassembly:
sub esp, 0x90
mov eax, dword [0x453d94]
push ebx
mov dword [esp + 4], eax
push ebp
cdq
and edx, 7
mov ebp, ecx
mov ecx, dword [esp + 0xa0]
add eax, edx
push esi
mov esi, eax
sar esi, 3
mov eax, ecx
xor edx, edx
div esi
xor ebx, ebx
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x90], eax
mov eax, dword [0x453d9c]
mov dword [esp + 0x94], eax
mov eax, dword [0x453d8c]
cmp eax, ebx
jne 0x4229e3
mov eax, dword [0x453d90]
mov edi, dword [esp + 0xa4]
cmp eax, 8
mov edx, ecx
setne al
dec eax
and eax, 0x80
and eax, 0xff
mov bl, al
mov bh, bl
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8
cmp dword [ebp + 0xc6c], ebx
je 0x4229f4
movsx ecx, word [0x453da0]
jmp 0x4229f6
xor ecx, ecx
cmp dword [ebp + 0xc70], ebx
je 0x422a28
movsx eax, word [0x453da2]
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x30], edx
jmp 0x422a2c
mov dword [esp + 0x30], ebx
cmp dword [ebp + 0xc74], ebx
je 0x422a5e
movsx eax, word [0x453da4]
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x34], edx
jmp 0x422a62
mov dword [esp + 0x34], ebx
cmp dword [ebp + 0xc78], ebx
je 0x422a94
movsx eax, word [0x453da6]
imul eax, ecx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x38], edx
jmp 0x422a98
mov dword [esp + 0x38], ebx
cmp dword [ebp + 0xc7c], ebx
je 0x422ac7
movsx eax, word [0x453da8]
imul eax, ecx
lea edx, [eax + eax*2]
mov eax, 0x68db8bad
shl edx, 6
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x3c], edx
jmp 0x422acb
mov dword [esp + 0x3c], ebx
cmp dword [ebp + 0xc80], ebx
je 0x422afd
movsx eax, word [0x453daa]
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x40], edx
jmp 0x422b01
mov dword [esp + 0x40], ebx
mov edi, dword [ebp + 0xc84]
mov si, word [0x453dac]
cmp edi, ebx
je 0x422b38
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x44], edx
jmp 0x422b3c
mov dword [esp + 0x44], ebx
mov eax, dword [ebp + 0xc88]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x422b70
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x48], edx
jmp 0x422b74
mov dword [esp + 0x48], ebx
mov eax, dword [ebp + 0xc8c]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x422ba8
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x4c], edx
jmp 0x422bac
mov dword [esp + 0x4c], ebx
cmp edi, ebx
je 0x422bda
movsx eax, word [0x453dae]
imul eax, ecx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x50], edx
jmp 0x422bde
mov dword [esp + 0x50], ebx
cmp edi, ebx
je 0x422c0c
movsx eax, word [0x453db0]
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x54], edx
jmp 0x422c10
mov dword [esp + 0x54], ebx
mov si, word [0x453db2]
cmp edi, ebx
je 0x422c41
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x58], edx
jmp 0x422c45
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x14], ebx
je 0x422c71
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x5c], edx
jmp 0x422c75
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x18], ebx
je 0x422ca1
movsx eax, si
imul eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x60], edx
jmp 0x422ca5
mov dword [esp + 0x60], ebx
mov si, word [0x453db4]
cmp edi, ebx
je 0x422cd7
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x64], edx
jmp 0x422cdb
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x14], ebx
je 0x422d08
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x68], edx
jmp 0x422d0c
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x18], ebx
je 0x422d39
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], edx
jmp 0x422d3d
mov dword [esp + 0x6c], ebx
cmp dword [ebp + 0xc90], ebx
je 0x422d6c
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x70], edx
jmp 0x422d70
mov dword [esp + 0x70], ebx
cmp dword [ebp + 0xc94], ebx
je 0x422d9f
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x74], edx
jmp 0x422da3
mov dword [esp + 0x74], ebx
cmp dword [ebp + 0xc98], ebx
je 0x422dd2
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x78], edx
jmp 0x422dd6
mov dword [esp + 0x78], ebx
cmp dword [ebp + 0xc9c], ebx
je 0x422e05
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x7c], edx
jmp 0x422e09
mov dword [esp + 0x7c], ebx
cmp dword [ebp + 0xca0], ebx
je 0x422e3b
movsx eax, si
imul eax, ecx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, 0x68db8bad
shl edx, 3
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x80], edx
jmp 0x422e42
mov dword [esp + 0x80], ebx
mov si, word [0x453db6]
cmp edi, ebx
je 0x422e76
movsx eax, si
imul eax, ecx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x84], edx
jmp 0x422e7d
mov dword [esp + 0x84], ebx
cmp dword [esp + 0x14], ebx
je 0x422eac
movsx eax, si
imul eax, ecx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
mov eax, 0x68db8bad
shl edx, 4
imul edx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x88], edx
jmp 0x422eb3
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x18], ebx
je 0x422ee2
movsx eax, si
imul eax, ecx
lea ecx, [eax + eax*8]
lea ecx, [eax + ecx*2]
mov eax, 0x68db8bad
shl ecx, 4
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x8c], edx
jmp 0x422ee9
mov dword [esp + 0x8c], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
fild dword [ecx + 0x1c]
mov ecx, dword [eax + 8]
fmul qword [0x442cd8]
fidiv dword [0x453d90]
fstp qword [esp + 0x98]
call fcn.00423520
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 1
je 0x422f26
mov ecx, ebp
call fcn.00422530
mov ecx, dword [esp + 0x90]
mov edx, ecx
dec ecx
test edx, edx
je 0x42335e
lea eax, [ebp + 0xcac]
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ebx, 1
fld qword [ebp + 0x10]
call fcn.00436b68
mov esi, eax
lea eax, [esp + 0x24]
push eax
push esi
mov ecx, ebp
call fcn.00422420
test eax, eax
je 0x422f89
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, ebp
call fcn.00422870
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
push esi
call fcn.00422420
test eax, eax
jne 0x422f67
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, ebp
call fcn.004224d0
test eax, eax
je 0x422fbc
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, ebp
call fcn.004228a0
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, ebp
call fcn.004224d0
test eax, eax
jne 0x422f9a
mov edx, dword [ebp + 0x30]
lea edi, [ebp + 0x30]
push 0
mov ecx, edi
call dword [edx + 0xc]
mov esi, eax
mov eax, dword [edi]
imul esi, dword [esp + 0x30]
push ebx
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x34]
mov edx, dword [edi]
push 2
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x38]
add esi, eax
mov eax, dword [edi]
push 3
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x3c]
mov edx, dword [edi]
push 4
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x40]
add esi, eax
mov al, byte [ebp + 0xc]
test bl, al
je 0x42304f
mov eax, dword [ebp + 0x180]
lea edi, [ebp + 0x180]
push 0
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x44]
mov edx, dword [edi]
push ebx
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x48]
add esi, eax
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x4c]
add esi, eax
test byte [ebp + 0xc], 2
je 0x42306d
mov edx, dword [ebp + 0x1d4]
lea ecx, [ebp + 0x1d4]
push 0
call dword [edx + 0xc]
imul eax, dword [esp + 0x50]
add esi, eax
test byte [ebp + 0xc], 4
je 0x42308b
mov eax, dword [ebp + 0x248]
lea ecx, [ebp + 0x248]
push 0
call dword [eax + 0xc]
imul eax, dword [esp + 0x54]
add esi, eax
test byte [ebp + 0xc], 8
je 0x4230ca
mov edx, dword [ebp + 0x1e0]
lea edi, [ebp + 0x1e0]
push 0
mov ecx, edi
call dword [edx + 0xc]
imul eax, dword [esp + 0x58]
add esi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x5c]
mov edx, dword [edi]
push 2
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x60]
add esi, eax
test byte [ebp + 0xc], 0x10
je 0x423160
mov eax, dword [ebp + 0x6a8]
lea edi, [ebp + 0x6a8]
push 0
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x64]
mov edx, dword [edi]
push ebx
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x68]
add esi, eax
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x6c]
mov edx, dword [edi]
push 3
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x70]
add esi, eax
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x74]
mov edx, dword [edi]
push 5
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x78]
add esi, eax
mov eax, dword [edi]
push 6
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x7c]
mov edx, dword [edi]
push 7
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x80]
add esi, eax
test byte [ebp + 0xc], 0x20
je 0x4231b1
mov eax, dword [ebp + 0xb78]
lea edi, [ebp + 0xb78]
push 3
mov ecx, edi
call dword [eax + 0xc]
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0xc]
imul eax, dword [esp + 0x84]
add esi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0xc]
imul eax, dword [esp + 0x88]
mov edx, dword [edi]
push 2
mov ecx, edi
add esi, eax
call dword [edx + 0xc]
imul eax, dword [esp + 0x8c]
add esi, eax
mov eax, dword [esp + 0x94]
sar esi, 8
cmp eax, ebx
mov dword [esp + 0x14], esi
jne 0x4231d5
mov eax, dword [ebp + 0x20]
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x42324a
cmp eax, 2
jne 0x4231fd
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
add ecx, edi
mov eax, 0x55555556
add ecx, esi
mov dword [ebp + 0x24], edi
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
mov dword [esp + 0x14], esi
jmp 0x42324a
cmp eax, 3
jne 0x423228
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
add eax, ecx
add eax, edi
mov dword [ebp + 0x28], ecx
add eax, esi
mov dword [ebp + 0x24], edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x42324a
cmp eax, 4
jne 0x42324d
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ebp + 0x24], ecx
lea eax, [edx + ecx*2]
add eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [ebp + 0x20], esi
fld qword [0x4d71f0]
fsub qword [0x4d71f8]
fmul qword [0x442cd0]
fld qword [0x4d71f0]
fsub st(1)
fstp qword [0x4d71f0]
fadd qword [0x4d71f8]
fstp qword [0x4d71f8]
fild dword [esp + 0x14]
fcom qword [0x4d71f0]
fnstsw ax
test ah, 0x41
jne 0x423290
fst qword [0x4d71f0]
fcom qword [0x4d71f8]
fnstsw ax
test ah, 1
je 0x4232a5
fstp qword [0x4d71f8]
jmp 0x4232a7
fstp st(0)
fld qword [0x4d71e8]
fmul qword [0x442cc8]
fsubr qword [0x4d71e8]
fld qword [0x4d71f8]
fadd qword [0x4d71f0]
fmul qword [0x442cc0]
faddp st(1)
fst qword [0x4d71e8]
call fcn.00436b68
sub esi, eax
cmp esi, 0x7fff
jle 0x4232e9
mov esi, 0x7fff
jmp 0x4232f6
cmp esi, 0xffff8000
jge 0x4232f6
mov esi, 0xffff8000
cmp dword [esp + 0x10], 8
je 0x42330c
mov eax, dword [esp + 0xa4]
mov word [eax], si
add eax, 2
jmp 0x42331e
mov eax, dword [esp + 0xa4]
mov ecx, esi
sar ecx, 8
xor cl, 0x80
mov byte [eax], cl
inc eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x100
jge 0x423347
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc edx
mov word [eax], si
add eax, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
fld qword [esp + 0x98]
fadd qword [ebp + 0x10]
dec dword [esp + 0x1c]
fstp qword [ebp + 0x10]
jne 0x422f4c
mov esi, dword [ebp + 8]
mov edx, esi
mov ecx, dword [edx + 8]
call fcn.00423520
mov edi, eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
add edx, edi
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 1
je 0x4233ab
mov ecx, dword [esi + 8]
call fcn.00423520
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 8]
mov edx, dword [edx + 0x1c]
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [ebp + 0x10]
fstp qword [esp + 0x98]
call fcn.00423520
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x423408
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
call fcn.00423520
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [ebp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8