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

Disassembly:
sub esp, 0x54
mov eax, dword [ecx + 0x228]
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x44bec9
add esp, 0x54
jmp 0x45e4d0
fld dword [esp + 0x78]
fcomp dword [0x49dec4]
fnstsw ax
test ah, 5
jp 0x44bee5
mov eax, 1
add esp, 0x54
ret 0x24
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x1bc]
mov edx, dword [ecx + 0x1c0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], edx
cdq
sub eax, edx
push ebx
sar eax, 1
push ebp
mov dword [esp + 0x3c], eax
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x80]
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
sar eax, 1
mov dword [esp + 0x30], edi
add edi, edx
mov edx, dword [esp + 0x6c]
lea esi, [eax + edx]
mov edx, dword [0x4b426c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov bx, word [edx + eax*2]
mov edx, dword [0x4b4270]
mov ax, word [edx + eax*2]
mov dword [esp + 0x38], esi
mov word [esp + 0x2c], ax
call fcn.004475d0
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x84], eax
call fcn.004475d0
fild dword [esp + 0x30]
mov dword [esp + 0x18], eax
fld dword [0x49de84]
movsx eax, word [esp + 0x2c]
fdiv dword [esp + 0x88]
movsx ebp, bx
mov dword [esp + 0x30], eax
mov ebx, ebp
imul eax, edi
imul ebx, esi
fstp dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
add eax, ebx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fsubr st(1)
fmul dword [0x49de7c]
call fcn.004786f0
fild dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov ecx, ebp
imul eax, esi
fstp dword [esp + 0x2c]
imul ecx, edi
mov dword [esp + 0x40], ecx
sub ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
fild dword [esp + 0x28]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fadd dword [esp + 0x2c]
fmul dword [0x49de7c]
call fcn.004786f0
mov esi, 1
sub esi, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
neg edi
mov ecx, esi
imul ecx, dword [esp + 0x30]
sub ecx, ebx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fadd st(1)
fmul dword [0x49de78]
call fcn.004786f0
imul esi, ebp
mov ebx, dword [esp + 0x14]
mov ecx, edi
sub ecx, eax
add esi, dword [esp + 0x24]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
neg ebx
fild dword [esp + 0x28]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fsubr dword [esp + 0x2c]
fmul dword [0x49de78]
call fcn.004786f0
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x38]
mov esi, 1
sub esi, eax
mov edx, esi
imul edx, ebp
sub edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x3c]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fadd st(1)
fmul dword [0x49de78]
call fcn.004786f0
imul esi, dword [esp + 0x30]
fstp st(0)
add esi, dword [esp + 0x40]
mov dword [esp + 0x40], esi
sub edi, eax
mov dword [esp + 0x28], edi
fild dword [esp + 0x40]
fmul dword [esp + 0x1c]
fmul dword [0x49de80]
fadd dword [esp + 0x2c]
fmul dword [0x49de78]
call fcn.004786f0
fild dword [esp + 0x7c]
sub ebx, eax
mov eax, dword [esp + 0x7c]
fmul dword [esp + 0x88]
shl eax, 0x10
fld dword [0x49d4ac]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
fmul st(1)
shl eax, 0x10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
fsubr st(1)
fmul dword [0x49de80]
call fcn.004786f0
fstp st(0)
fild dword [esp + 0x80]
mov esi, eax
fmul dword [esp + 0x88]
fld dword [0x49d4ac]
fmul st(1)
fsubr st(1)
fmul dword [0x49de80]
call fcn.004786f0
fstp st(0)
cmp esi, eax
jge 0x44c14d
mov esi, eax
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x68]
lea ecx, [ebx + esi]
add ecx, edx
sub ecx, ebx
sub ecx, edx
lea eax, [esi + ebp]
add eax, edi
mov edx, ecx
sub eax, ebp
imul edx, ecx
sub eax, edi
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x88], edx
fild dword [esp + 0x88]
fsqrt
call fcn.004786f0
mov edx, dword [esp + 0x6c]
mov ecx, ebp
add ebp, eax
add ebp, edi
sub ecx, eax
mov esi, ebx
sub esi, eax
mov dword [esp + 0x5c], ebp
lea ebp, [ebx + eax]
mov eax, dword [esp + 0x4c]
add ecx, edi
add esi, edx
add ebp, edx
cmp ecx, eax
mov dword [esp + 0x54], ecx
jg 0x44c6cb
mov ecx, dword [esp + 0x50]
cmp esi, ecx
jg 0x44c6cb
mov edx, dword [esp + 0x5c]
test edx, edx
jl 0x44c6cb
test ebp, ebp
jl 0x44c6cb
test esi, esi
jge 0x44c1e3
xor esi, esi
mov ebx, dword [esp + 0x54]
test ebx, ebx
jge 0x44c1f1
xor ebx, ebx
mov dword [esp + 0x54], ebx
cmp ebp, ecx
jle 0x44c1f7
mov ebp, ecx
cmp dword [esp + 0x5c], eax
jle 0x44c201
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, ebx
imul eax, dword [esp + 0x20]
mov edx, esi
imul edx, dword [esp + 0x28]
add eax, ecx
add eax, edx
mov edx, ebx
imul edx, dword [esp + 0x24]
mov ecx, esi
imul ecx, dword [esp + 0x1c]
add edx, edi
add edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x228]
cmp eax, 0x378
mov dword [esp + 0x14], edx
ja 0x44c599
je 0x44c46b
sub eax, 0x22b
je 0x44c36b
sub eax, 0xa
jne 0x44c6ad
call fcn.00442b40
mov ecx, dword [esp + 0x70]
mov edi, eax
mov dword [esp + 0x7c], edi
call fcn.00442b40
imul edi, esi
mov ecx, eax
imul ecx, dword [esp + 0x78]
cdq
sub eax, edx
add dword [esp + 0x84], edi
mov edx, dword [esp + 0x18]
add edx, ecx
sar eax, 1
cmp esi, ebp
mov dword [esp + 0x18], edx
jge 0x44c6ad
sub ebp, esi
mov dword [esp + 0x88], ebp
lea esp, [esp]
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea edi, [esi + ebx*2]
mov esi, dword [esp + 0x5c]
cmp ebx, esi
jge 0x44c321
mov ebp, esi
sub ebp, ebx
mov edi, edi
test ecx, ecx
jl 0x44c30b
cmp ecx, dword [esp + 0x2c]
jge 0x44c30b
test edx, edx
jl 0x44c30b
cmp edx, dword [esp + 0x30]
jge 0x44c30b
mov esi, edx
sar esi, 0x10
imul esi, eax
add esi, dword [esp + 0x74]
mov ebx, ecx
sar ebx, 0x10
add ebx, esi
mov esi, dword [esp + 0x18]
lea esi, [esi + ebx*2]
mov si, word [esi]
cmp si, 0x7e0
je 0x44c30b
mov word [edi], si
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add edi, 2
add ecx, esi
add edx, ebx
dec ebp
jne 0x44c2d0
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add edi, ecx
mov ecx, dword [esp + 0x7c]
add esi, edx
mov edx, dword [esp + 0x84]
add edx, ecx
mov ecx, dword [esp + 0x88]
dec ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
jne 0x44c2b0
jmp 0x44c6ad
call fcn.00442b40
mov ecx, dword [esp + 0x70]
mov edi, eax
mov dword [esp + 0x7c], edi
call fcn.00442b40
imul edi, esi
mov ecx, eax
imul ecx, dword [esp + 0x78]
cdq
sub eax, edx
add dword [esp + 0x84], edi
mov edx, dword [esp + 0x18]
add edx, ecx
sar eax, 1
cmp esi, ebp
mov dword [esp + 0x18], edx
jge 0x44c6ad
sub ebp, esi
mov dword [esp + 0x88], ebp
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea edi, [esi + ebx*2]
mov esi, dword [esp + 0x5c]
cmp ebx, esi
jge 0x44c421
mov ebp, esi
sub ebp, ebx
mov edi, edi
test ecx, ecx
jl 0x44c40b
cmp ecx, dword [esp + 0x2c]
jge 0x44c40b
test edx, edx
jl 0x44c40b
cmp edx, dword [esp + 0x30]
jge 0x44c40b
mov esi, edx
sar esi, 0x10
imul esi, eax
add esi, dword [esp + 0x74]
mov ebx, ecx
sar ebx, 0x10
add ebx, esi
mov esi, dword [esp + 0x18]
lea esi, [esi + ebx*2]
mov si, word [esi]
cmp si, 0x3e0
je 0x44c40b
mov word [edi], si
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add edi, 2
add ecx, esi
add edx, ebx
dec ebp
jne 0x44c3d0
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x84]
add ebp, edx
mov edx, dword [esp + 0x7c]
add edi, ecx
mov ecx, dword [esp + 0x88]
add esi, edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ecx
jne 0x44c3b0
jmp 0x44c6ad
call fcn.00442b40
mov ecx, dword [esp + 0x70]
mov edi, eax
mov dword [esp + 0x80], edi
call fcn.00442b40
imul edi, esi
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
imul eax, dword [esp + 0x78]
add ecx, edi
add edx, eax
cmp esi, ebp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x18], edx
jge 0x44c6ad
lea eax, [ebx + ebx*2]
sub ebp, esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], ebp
mov eax, dword [esp + 0x5c]
cmp ebx, eax
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea edi, [edx + ecx]
jge 0x44c54c
sub eax, ebx
lea esp, [esp]
test esi, esi
jl 0x44c536
cmp esi, dword [esp + 0x2c]
jge 0x44c536
test ebp, ebp
jl 0x44c536
cmp ebp, dword [esp + 0x30]
jge 0x44c536
mov ecx, dword [esp + 0x74]
mov edx, esi
sar edx, 0x10
add edx, ecx
mov ecx, dword [esp + 0x18]
lea ebx, [edx + ecx]
mov ecx, ebp
sar ecx, 0x10
imul ecx, dword [esp + 0x7c]
lea edx, [ebx + edx*2]
add ecx, edx
mov dl, byte [ecx]
test dl, dl
jne 0x44c528
cmp byte [ecx + 1], 0xff
jne 0x44c528
mov bl, byte [ecx + 2]
test bl, bl
je 0x44c536
mov byte [edi], dl
mov dl, byte [ecx + 1]
mov byte [edi + 1], dl
mov cl, byte [ecx + 2]
mov byte [edi + 2], cl
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edi, 3
add esi, ebx
add ebp, edx
dec eax
jne 0x44c4e0
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add edi, edx
mov edx, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x88]
add ecx, edx
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
jne 0x44c4c0
jmp 0x44c6ad
cmp eax, 0x22b8
jne 0x44c6ad
call fcn.00442b40
mov ecx, dword [esp + 0x70]
mov edi, eax
mov dword [esp + 0x7c], edi
call fcn.00442b40
imul edi, esi
mov ecx, eax
imul ecx, dword [esp + 0x78]
cdq
and edx, 3
add eax, edx
add dword [esp + 0x84], edi
mov edx, dword [esp + 0x18]
add edx, ecx
sar eax, 2
cmp esi, ebp
mov dword [esp + 0x18], edx
jge 0x44c6ad
sub ebp, esi
mov dword [esp + 0x88], ebp
lea ecx, [ecx]
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea edi, [esi + ebx*4]
mov esi, dword [esp + 0x5c]
cmp ebx, esi
jge 0x44c668
mov ebp, esi
sub ebp, ebx
mov edi, edi
test ecx, ecx
jl 0x44c652
cmp ecx, dword [esp + 0x2c]
jge 0x44c652
test edx, edx
jl 0x44c652
cmp edx, dword [esp + 0x30]
jge 0x44c652
mov esi, edx
sar esi, 0x10
imul esi, eax
add esi, dword [esp + 0x74]
mov ebx, ecx
sar ebx, 0x10
add ebx, esi
mov esi, dword [esp + 0x18]
lea esi, [esi + ebx*4]
mov esi, dword [esi]
mov ebx, esi
and ebx, 0xffffff
cmp ebx, 0xff00
je 0x44c652
mov dword [edi], esi
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add edi, 4
add ecx, esi
add edx, ebx
dec ebp
jne 0x44c610
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add edi, ecx
mov ecx, dword [esp + 0x7c]
add esi, edx
mov edx, dword [esp + 0x84]
add edx, ecx
mov ecx, dword [esp + 0x88]
dec ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
jne 0x44c5f0
mov ecx, dword [esp + 0x34]
call fcn.00447640
mov ecx, dword [esp + 0x70]
call fcn.00447640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 0x24
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x228]
test eax, eax
mov esi, 0x4000
jne 0x44c6e5
call fcn.00444d90
jmp 0x44c6fe
cmp dword [ecx + 0x1ac], esi
jne 0x44c6fe
mov eax, dword [ecx + 0x18c]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x228]
test eax, eax
jne 0x44c720
call fcn.00444d90
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x54
ret 0x24
cmp dword [ecx + 0x1ac], esi
jne 0x44c739
mov eax, dword [ecx + 0x18c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x54
ret 0x24
fld dword [esp + 0x24]
sub esp, 0x50
fcomp dword [0x49dec4]
fnstsw ax
test ah, 5
jp 0x45e4ef
mov eax, 1
add esp, 0x50
ret 0x24
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], edx
cdq
sub eax, edx
sar eax, 1
push ebx
mov ebx, dword [0x4b4270]
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], edi
cdq
fild dword [esp + 0x24]
sub eax, edx
fld dword [0x49de84]
mov edx, dword [esp + 0x64]
fdiv dword [esp + 0x84]
mov ecx, dword [ecx + 0x34]
sar eax, 1
add edi, edx
mov edx, dword [esp + 0x68]
lea esi, [eax + edx]
mov edx, dword [0x4b426c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov dx, word [edx + eax*2]
mov ax, word [ebx + eax*2]
movsx eax, ax
movsx ebp, dx
mov dword [esp + 0x14], eax
mov ebx, ebp
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
imul eax, edi
imul ebx, esi
fstp dword [esp + 0x80]
mov dword [esp + 0x30], eax
add eax, ebx
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fsubr st(1)
fmul dword [0x49de7c]
call fcn.004786f0
fild dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, ebp
imul eax, esi
fstp dword [esp + 0x18]
imul ecx, edi
mov dword [esp + 0x34], ecx
sub ecx, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x28], eax
fild dword [esp + 0x6c]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fadd dword [esp + 0x18]
fmul dword [0x49de7c]
call fcn.004786f0
mov esi, 1
sub esi, edi
mov edi, dword [esp + 0x10]
mov edx, esi
neg edi
imul edx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
sub edx, ebx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fadd st(1)
fmul dword [0x49de78]
call fcn.004786f0
imul esi, ebp
mov ebx, dword [esp + 0x6c]
mov ecx, edi
sub ecx, eax
add esi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ecx
neg ebx
fild dword [esp + 0x28]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fsubr dword [esp + 0x18]
fmul dword [0x49de78]
call fcn.004786f0
mov edx, dword [esp + 0x30]
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x2c]
mov esi, 1
sub esi, eax
mov eax, esi
imul eax, ebp
sub eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
fild dword [esp + 0x30]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fadd st(1)
fmul dword [0x49de78]
call fcn.004786f0
imul esi, dword [esp + 0x14]
fstp st(0)
add esi, dword [esp + 0x34]
mov dword [esp + 0x34], esi
sub edi, eax
mov dword [esp + 0x24], edi
fild dword [esp + 0x34]
fmul dword [esp + 0x80]
fmul dword [0x49de80]
fadd dword [esp + 0x18]
fmul dword [0x49de78]
call fcn.004786f0
fild dword [esp + 0x78]
sub ebx, eax
mov eax, dword [esp + 0x78]
fmul dword [esp + 0x84]
shl eax, 0x10
fld dword [0x49d4ac]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
fmul st(1)
shl eax, 0x10
mov dword [esp + 0x80], ebx
mov dword [esp + 0x30], eax
fsubr st(1)
fmul dword [0x49de80]
call fcn.004786f0
fstp st(0)
fild dword [esp + 0x7c]
mov esi, eax
fmul dword [esp + 0x84]
fld dword [0x49d4ac]
fmul st(1)
fsubr st(1)
fmul dword [0x49de80]
call fcn.004786f0
fstp st(0)
cmp esi, eax
jge 0x45e750
mov esi, eax
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
lea eax, [ebx + esi]
add eax, edx
lea ecx, [esi + ebp]
mov esi, dword [esp + 0x68]
add ecx, esi
sub ecx, ebp
sub ecx, esi
sub eax, ebx
sub eax, edx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x84], edx
fild dword [esp + 0x84]
fsqrt
call fcn.004786f0
mov edx, dword [esp + 0x64]
mov edi, ebx
mov ecx, ebp
sub edi, eax
sub ecx, eax
add ebx, eax
add ebp, eax
mov eax, dword [esp + 0x40]
add edi, edx
add ebx, edx
add ebp, esi
add ecx, esi
cmp edi, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
jg 0x45e924
mov edx, dword [esp + 0x44]
cmp ecx, edx
jg 0x45e924
test ebx, ebx
jl 0x45e924
test ebp, ebp
jl 0x45e924
test ecx, ecx
jge 0x45e7e1
xor ecx, ecx
test edi, edi
jge 0x45e7e7
xor edi, edi
cmp ebp, edx
jle 0x45e7f1
mov dword [esp + 0x5c], edx
mov ebp, edx
cmp ebx, eax
jle 0x45e7fb
mov ebx, eax
mov dword [esp + 0x58], ebx
mov esi, dword [esp + 0x10]
mov eax, edi
imul eax, dword [esp + 0x1c]
mov edx, ecx
imul edx, dword [esp + 0x24]
add eax, esi
lea esi, [eax + edx]
mov eax, edi
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x6c]
mov edx, ecx
imul edx, dword [esp + 0x80]
add eax, edx
cmp ecx, ebp
mov edx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], edx
jge 0x45e918
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x48]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x7c], ecx
mov edi, edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + edx*4]
mov ebp, dword [esp + 0x6c]
lea eax, [edi + edi*2]
add ecx, eax
cmp edi, ebx
jge 0x45e8e8
sub ebx, edi
mov dword [esp + 0x84], ebx
test esi, esi
jl 0x45e8c0
cmp esi, dword [esp + 0x34]
jge 0x45e8c0
test ebp, ebp
jl 0x45e8c0
cmp ebp, dword [esp + 0x30]
jge 0x45e8c0
mov ebx, dword [esp + 0x70]
mov eax, esi
sar eax, 0x10
add eax, ebx
mov ebx, dword [esp + 0x7c]
mov edx, ebp
sar edx, 0x10
lea eax, [eax + eax*2]
add eax, dword [ebx + edx*4]
mov dl, byte [eax]
test dl, dl
jne 0x45e8b2
cmp byte [eax + 1], 0xff
jne 0x45e8b2
mov bl, byte [eax + 2]
test bl, bl
je 0x45e8c0
mov byte [ecx], dl
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x84]
add ecx, 3
add esi, ebx
add ebp, edx
dec eax
mov dword [esp + 0x84], eax
jne 0x45e871
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x5c]
inc edx
add ebp, ecx
cmp edx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], ebp
jl 0x45e850
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x24
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x50
ret 0x24