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

Disassembly:
mov ecx, dword [0x887734]
mov eax, dword [ecx + 0x76b10]
mov edx, dword [esp + 8]
sub esp, 0x64
cmp edx, eax
jle 0x44549b
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
test eax, eax
push ebx
push esi
jne 0x4454ab
mov eax, dword [esp + 0x7c]
jmp 0x4454da
mov edx, dword [0x5e56d8]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x887734]
imul eax, eax, 7
cdq
idiv dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x445961
push ebp
push edi
jmp 0x4454f4
mov ecx, dword [0x887734]
mov eax, dword [esp + 0x78]
test eax, eax
jl 0x44595f
cmp eax, dword [ecx + 0x76b0c]
jge 0x44595f
push 0x186a1
add ecx, 0x77398
call fcn.00530680
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x4457b5
mov ebp, dword [edi + 0x10]
cmp edi, ebp
je 0x4457b5
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov al, byte [esp + 0x20]
test al, al
je 0x4457aa
mov eax, dword [ebp + 0x4d8]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004ce8c0
mov esi, eax
call fcn.00403230
cmp byte [esp + 0x24], bl
je 0x4457aa
cmp dword [ebp + 0x24], 0xe
je 0x4457aa
mov edx, dword [ebp + 0x328]
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.004ce8c0
mov esi, eax
call fcn.00403230
mov al, byte [esp + 0x28]
test al, al
je 0x4455c5
mov ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, ecx
mov eax, edi
imul eax, edi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsqrt
call fcn.00556654
mov edx, dword [ebp + 0x420]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov al, byte [esp + 0x2c]
test al, al
jne 0x4457a6
mov ecx, dword [ebp + 0xa4]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004ce8c0
mov esi, eax
call fcn.00403230
mov eax, dword [ebp + 0xac]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x78]
lea edx, [esp + 0x44]
push edx
push eax
sub edi, ebx
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x7c]
mov ecx, eax
mov edx, edi
imul ecx, eax
imul edx, edi
add ecx, edx
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fsqrt
call fcn.00556654
cmp eax, dword [esp + 0x14]
jge 0x4457a6
mov ecx, dword [ebp + 0x420]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 1
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0x430]
mov ebx, dword [esp + 0x88]
push 1
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ebx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0x438]
mov edi, dword [esp + 0x8c]
push 1
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], edi
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp + 0x440]
mov eax, dword [esp + 0x84]
push 1
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], eax
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0x428]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 0
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0x24]
cmp eax, 0xe
mov cl, byte [esp + 0x90]
mov byte [ebp + 0x410], cl
je 0x44575c
cmp eax, 5
je 0x44575c
cmp eax, 6
je 0x44575c
cmp eax, 8
je 0x44575c
cmp eax, 0xa
je 0x44575c
mov edx, dword [ebp]
push str.shock
mov ecx, ebp
call dword [edx + 4]
mov cl, byte [esp + 0x90]
cmp cl, 8
jae 0x4457a6
mov esi, dword [0x887734]
movzx eax, cl
mov ecx, dword [ebp + 8]
and ecx, 7
mov dl, byte [ecx + esi + 0x244da]
mov cl, byte [eax + esi + 0x244da]
add ebx, edi
cmp dl, cl
push ebx
jne 0x44579a
lea edi, [esi + eax*8 + 0x26d58]
call fcn.00417d40
mov byte [ebp + 0x418], 1
jmp 0x4457a6
lea edi, [esi + eax*8 + 0x26d18]
call fcn.00417d40
mov edi, dword [esp + 0x18]
mov ebp, dword [ebp + 0x10]
cmp edi, ebp
jne 0x445535
mov ecx, dword [0x887734]
push 0x186a6
add ecx, 0x77398
call fcn.00530680
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x44593a
mov eax, dword [esp + 0x14]
mov ecx, eax
imul ecx, eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fsqrt
call fcn.00556654
mov ebp, dword [esi + 0x10]
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x44593a
mov al, byte [ebp + 0x14]
test al, al
jne 0x44592f
mov eax, dword [ebp + 0x44]
lea edx, [esp + 0x54]
push edx
push eax
call fcn.004ce8c0
mov ebx, 1
mov esi, eax
call fcn.00403230
mov edx, dword [ebp + 0x4c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x64]
push ecx
push edx
sub edi, esi
call fcn.004ce8c0
mov esi, eax
call fcn.00403230
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x7c]
mov ecx, eax
mov edx, edi
imul ecx, eax
imul edx, edi
add ecx, edx
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fsqrt
call fcn.00556654
cmp eax, dword [esp + 0x14]
jge 0x44592b
mov ecx, dword [ebp + 0x80]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 1
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0x90]
mov edx, dword [esp + 0x88]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0x98]
mov edx, dword [esp + 0x8c]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov ecx, dword [ebp + 0xa0]
mov edx, dword [esp + 0x84]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov eax, dword [ebp + 0x88]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x1c], 0
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [ebp]
push str.shock
mov ecx, ebp
call dword [edx + 4]
mov esi, dword [esp + 0x18]
mov ebp, dword [ebp + 0x10]
cmp esi, ebp
jne 0x445800
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x7c], eax
jns 0x4454ee
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 0x1c