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

Disassembly:
mov ecx, dword [0x87b40c]
mov eax, dword [ecx + 0x768f0]
mov edx, dword [esp + 8]
sub esp, 0x64
cmp edx, eax
jle 0x44313b
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
test eax, eax
push ebx
push esi
jne 0x44314b
mov eax, dword [esp + 0x7c]
jmp 0x44317a
mov edx, dword [0x5d9698]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x87b40c]
imul eax, eax, 7
cdq
idiv dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x4435fe
push ebp
push edi
jmp 0x443194
mov ecx, dword [0x87b40c]
mov eax, dword [esp + 0x78]
test eax, eax
jl 0x4435fc
cmp eax, dword [ecx + 0x768ec]
jge 0x4435fc
push 0x186a1
add ecx, 0x77178
call fcn.005279f0
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x443455
mov ebp, dword [edi + 0x10]
cmp edi, ebp
je 0x443455
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov al, byte [esp + 0x20]
test al, al
je 0x44344a
mov eax, dword [ebp + 0x4d8]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004c7160
mov esi, eax
call fcn.00403210
cmp byte [esp + 0x24], bl
je 0x44344a
cmp dword [ebp + 0x24], 0xe
je 0x44344a
mov edx, dword [ebp + 0x328]
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.004c7160
mov esi, eax
call fcn.00403210
mov al, byte [esp + 0x28]
test al, al
je 0x443265
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.0054c3dc
mov edx, dword [ebp + 0x420]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov al, byte [esp + 0x2c]
test al, al
jne 0x443446
mov ecx, dword [ebp + 0xa4]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004c7160
mov esi, eax
call fcn.00403210
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.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
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.0054c3dc
cmp eax, dword [esp + 0x14]
jge 0x443446
mov ecx, dword [ebp + 0x420]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 1
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
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.004c7160
mov esi, eax
call fcn.0040ad80
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.004c7160
mov esi, eax
call fcn.0040ad80
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.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0x428]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 0
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0x24]
cmp eax, 0xe
mov cl, byte [esp + 0x90]
mov byte [ebp + 0x410], cl
je 0x4433fc
cmp eax, 5
je 0x4433fc
cmp eax, 6
je 0x4433fc
cmp eax, 8
je 0x4433fc
cmp eax, 0xa
je 0x4433fc
mov edx, dword [ebp]
push str.shock
mov ecx, ebp
call dword [edx + 4]
mov cl, byte [esp + 0x90]
cmp cl, 8
jae 0x443446
mov esi, dword [0x87b40c]
movzx eax, cl
mov ecx, dword [ebp + 8]
and ecx, 7
mov dl, byte [ecx + esi + 0x2433a]
mov cl, byte [eax + esi + 0x2433a]
add ebx, edi
cmp dl, cl
push ebx
jne 0x44343a
lea edi, [esi + eax*8 + 0x26bb8]
call fcn.00416df0
mov byte [ebp + 0x418], 1
jmp 0x443446
lea edi, [esi + eax*8 + 0x26b78]
call fcn.00416df0
mov edi, dword [esp + 0x18]
mov ebp, dword [ebp + 0x10]
cmp edi, ebp
jne 0x4431d5
mov ecx, dword [0x87b40c]
push 0x186a6
add ecx, 0x77178
call fcn.005279f0
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4435d7
mov eax, dword [esp + 0x14]
mov ecx, eax
imul ecx, eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fsqrt
call fcn.0054c3dc
mov ebp, dword [esi + 0x10]
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x4435d7
mov al, byte [ebp + 0x14]
test al, al
jne 0x4435cc
mov eax, dword [ebp + 0x44]
lea edx, [esp + 0x54]
push edx
push eax
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
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.004c7160
mov esi, eax
call fcn.00403210
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.0054c3dc
cmp eax, dword [esp + 0x14]
jge 0x4435c8
mov ecx, dword [ebp + 0x78]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1c], 1
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0x88]
mov edx, dword [esp + 0x88]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0x90]
mov edx, dword [esp + 0x8c]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov ecx, dword [ebp + 0x98]
mov edx, dword [esp + 0x84]
push 1
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov eax, dword [ebp + 0x80]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x1c], 0
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
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 0x4434a0
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 0x44318e
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x64
ret 0x1c