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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x6c]
cmp eax, dword [ecx + 8]
jbe 0x486077
sub esp, 0xec
lea edi, [esp + 0x110]
xor eax, eax
call fcn.0044abdb
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x48605d
mov edx, dword [esp + 0xf4]
lea ebx, [edx - 1]
test ebx, ebx
jge 0x486048
mov ebp, ebx
neg ebx
dec ebx
mov eax, 0xaaaaaaab
mov esi, edx
imul ebx
sub edx, ebp
sar ebx, 0x1f
dec edx
sar edx, 3
sub edx, ebx
lea ebx, [edx + 1]
mov ebp, dword [esp + 0xf0]
sub ebp, ebx
lea edx, [edx + edx*2]
lea edx, [esi + edx*4 + 0xb]
cmp edx, 0xc
jl 0x48603f
mov eax, 0xaaaaaaab
mov ebx, edx
imul edx
add edx, ebx
mov esi, ebx
sar ebx, 0x1f
sar edx, 3
sub edx, ebx
lea ebx, [edx + ebp]
lea edx, [edx + edx*2]
shl edx, 2
sub esi, edx
mov edx, dword [esp + 0x108]
test edx, edx
jge 0x486031
mov ebp, edx
neg edx
dec edx
mov eax, 0x44b82fa1
mov edi, edx
imul edx
sar edi, 0x1f
sar edx, 0x1c
sub edx, edi
lea edi, [edx + 1]
mov eax, ecx
mov ecx, dword [esp + 0x104]
sub ecx, edi
imul edx, edx, 0x3b9aca00
lea edx, [ebp + edx + 0x3b9aca00]
cmp edx, 0x3b9aca00
jl 0x486028
mov ebp, eax
mov eax, 0x44b82fa1
mov edi, edx
imul edx
mov eax, edi
sar edi, 0x1f
sar edx, 0x1c
sub edx, edi
add ecx, edx
imul edx, edx, 0x3b9aca00
sub eax, edx
test ecx, ecx
jge 0x48601c
mov dword [esp + 0x64], ecx
neg ecx
dec ecx
mov edi, eax
mov eax, 0x88888889
imul ecx
mov eax, edi
mov edi, dword [esp + 0x64]
sub edx, edi
dec edx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
lea ecx, [edx + 1]
mov ebp, dword [esp + 0x100]
sub ebp, ecx
imul edx, edx, 0x3c
lea ecx, [edi + edx + 0x3c]
cmp ecx, 0x3c
jl 0x486011
mov edx, eax
mov eax, 0x88888889
mov edi, edx
imul ecx
add edx, ecx
sar edx, 5
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea ecx, [edx + ebp]
imul edx, edx, 0x3c
sub eax, edx
mov dword [esp + 0x48], eax
test ecx, ecx
jge 0x486003
mov dword [esp + 0x68], ecx
neg ecx
dec ecx
mov eax, 0x88888889
imul ecx
mov eax, edi
mov edi, dword [esp + 0x68]
sub edx, edi
dec edx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
lea ecx, [edx + 1]
mov ebp, dword [esp + 0xfc]
sub ebp, ecx
imul edx, edx, 0x3c
lea ecx, [edi + edx + 0x3c]
cmp ecx, 0x3c
jl 0x485ff8
mov edx, eax
mov eax, 0x88888889
mov edi, edx
imul ecx
add edx, ecx
mov eax, ecx
sar ecx, 0x1f
sar edx, 5
sub edx, ecx
lea ecx, [edx + ebp]
imul edx, edx, 0x3c
sub eax, edx
mov dword [esp + 0x50], eax
test ecx, ecx
jge 0x485fea
mov dword [esp + 0x60], ecx
neg ecx
dec ecx
mov eax, 0xaaaaaaab
imul ecx
mov eax, edi
mov edi, dword [esp + 0x60]
sub edx, edi
sar ecx, 0x1f
dec edx
sar edx, 4
sub edx, ecx
lea ecx, [edx + 1]
mov ebp, dword [esp + 0xf8]
sub ebp, ecx
lea ecx, [edx + edx*2]
lea ecx, [edi + ecx*8 + 0x18]
mov dword [esp + 0x4c], esi
mov dword [esp + 0xac], eax
cmp ecx, 0x18
jl 0x485fe1
mov eax, 0xaaaaaaab
imul ecx
add edx, ecx
mov eax, ecx
sar ecx, 0x1f
sar edx, 4
sub edx, ecx
lea ecx, [edx + ebp]
lea edx, [edx + edx*2]
shl edx, 3
sub eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
mov edx, ebx
add ebx, 0xd116ebf
mov dword [esp + 0x30], ebx
mov dword [esp], ebx
mov ebp, edx
sar edx, 0x1f
add ebp, 0xd116ebf
adc edx, 0x44
mov dword [esp + 0xa8], edx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x190
mov dword [esp + 0xc], 0
call fcn.00446000
mov eax, dword [esp + 0x10]
mov ecx, eax
mov eax, 0x190
mul ecx
mov ebx, dword [esp + 0x30]
mov ebp, ebx
sub ebx, eax
mov dword [esp + 0x30], ebx
mov esi, eax
mov eax, 0x23ab1
mov edi, edx
mul ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [esp], ebx
imul ecx, ecx, 0x190
add ecx, edi
sub ebp, esi
mov ebp, dword [esp + 0xa8]
sbb ebp, ecx
mov dword [esp + 0xa8], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x64
mov dword [esp + 0xc], 0
call fcn.00446000
mov eax, dword [esp + 0x10]
mov ecx, 0x64
mov ebx, eax
mul ecx
mov ecx, dword [esp + 0x30]
mov ebp, ecx
sub ecx, eax
mov esi, eax
mov eax, ebx
mov edi, 0x8eac
mov ebx, edx
mul edi
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], eax
mov edi, dword [esp + 0x6c]
add eax, edi
mov dword [esp + 0x98], eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x94], edi
imul edi, edi, 0x64
add ebx, edi
sub ebp, esi
mov ebp, dword [esp + 0xa8]
sbb ebp, ebx
mov ebx, ecx
shr ecx, 2
mov esi, ebp
shl ebp, 0x1e
or ebp, ecx
mov ecx, ebp
shl ebp, 2
mov dword [esp + 0x90], ebp
mov edi, ebx
sub ebx, ebp
mov eax, ecx
mov ebp, 0x5b5
mul ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
mov ebp, dword [esp + 0x98]
add eax, ebp
mov dword [esp + 0x84], eax
mov eax, 0x16d
mul ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], eax
mov ebx, dword [esp + 0x84]
add eax, ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
imul eax, eax, 0x23ab1
mov ebx, dword [esp + 0xa4]
add eax, ebx
mov ebx, dword [esp + 0x94]
imul ebx, ebx, 0x8eac
mov edx, dword [esp + 0xa0]
add edx, ebx
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x6c]
add ebx, ebp
adc eax, edx
mov edx, esi
shr esi, 2
mov ebx, esi
shl esi, 2
shr ecx, 0x1e
or ecx, esi
mov ebp, dword [esp + 0x90]
sub edi, ebp
sbb edx, ecx
imul ebx, ebx, 0x5b5
mov ecx, dword [esp + 0x8c]
add ecx, ebx
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x98]
add ebx, ebp
adc ecx, eax
imul edx, edx, 0x16d
mov eax, dword [esp + 0x80]
add eax, edx
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x84]
add edx, ebx
adc eax, ecx
mov ecx, dword [esp + 0x4c]
cmp ecx, 0xd
jae 0x486056
lea edx, [0x58a640]
mov edx, dword [edx + ecx*4]
mov ebx, dword [esp + 0x78]
mov ebp, ebx
add ebx, edx
mov esi, edx
sar edx, 0x1f
add ebp, esi
adc eax, edx
mov edx, dword [esp + 0x2c]
mov ebp, edx
sar edx, 0x1f
mov esi, edx
shr edx, 0x1e
add edx, ebp
sar edx, 2
shl edx, 2
mov edi, ebp
sub ebp, edx
test ebp, ebp
jne 0x485fd8
mov edx, eax
mov eax, 0x51eb851f
mov ebp, edx
imul edi
mov eax, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
sub edi, edx
test edi, edi
je 0x485fbd
mov eax, 1
test al, al
je 0x485cf7
inc ecx
cmp ecx, 3
jl 0x485cf7
add ebx, 1
adc ebp, 0
mov ecx, dword [esp + 0x58]
dec ecx
mov dword [esp + 0x74], ecx
mov edx, ebx
add ebx, ecx
mov eax, ebx
mov esi, 0x15180
mov ebx, edx
mul esi
mov dword [esp + 0x70], eax
mov esi, dword [esp + 0x54]
imul esi, esi, 0xe10
mov edi, dword [esp + 0x50]
imul edi, edi, 0x3c
add esi, edi
mov edi, dword [esp + 0x48]
add esi, edi
add eax, esi
mov dword [esp + 0xa4], eax
add eax, 0xe5263700
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x10c]
mov dword [esp], edi
mov dword [esp + 4], eax
sar ecx, 0x1f
mov edi, dword [esp + 0x74]
add ebx, edi
adc ecx, ebp
imul ecx, ecx, 0x15180
add ecx, edx
mov edx, esi
sar esi, 0x1f
mov ebx, dword [esp + 0x70]
add ebx, edx
adc ecx, esi
mov edx, dword [esp + 0xa4]
add edx, 0xe5263700
adc ecx, 0x80000001
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
call fcn.00486140
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
test ecx, ecx
je 0x485fb0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ebx
mov eax, ebp
mov ebp, dword [esp + 0x34]
mov edi, ebp
sub ebp, ecx
sar ecx, 0x1f
mov ebx, dword [esp + 0x44]
sub edi, ebx
mov edi, ebx
mov ebx, dword [esp + 0x38]
sbb ebx, ecx
cmp ebx, edx
sete cl
mov edx, dword [esp + 0x3c]
cmp ebp, edx
setb dl
and ecx, edx
mov edx, dword [esp + 0x40]
cmp ebx, edx
setl dl
or ecx, edx
test cl, cl
jne 0x485f82
cmp ebx, eax
sete cl
cmp ebp, esi
setae dl
and edx, ecx
cmp ebx, eax
setg cl
or edx, ecx
test dl, dl
jne 0x485f62
mov ecx, dword [esp + 0x34]
mov edx, ecx
sub ecx, edi
mov ebx, edi
sar edi, 0x1f
sub edx, ebx
mov edx, dword [esp + 0x38]
sbb edx, edi
mov ebx, ecx
add ecx, 0x7791f700
mov dword [esp + 0xa4], ecx
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.0044abdb
lea edi, [esp + 0xd8]
call fcn.0044abdb
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xd8], ecx
sar ecx, 0x1f
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xe0], ecx
add ebx, 0x7791f700
adc edx, 0xe
mov dword [esp + 0xe4], edx
mov ecx, dword [0x598534]
mov dword [esp + 0xe8], ecx
lea edi, [esp + 0xb0]
lea esi, [esp + 0xd8]
call fcn.0044b0be
lea edi, [esp + 0xc4]
lea esi, [esp + 0xb0]
call fcn.0044b0be
mov ecx, dword [esp + 0x10c]
lea edx, [0x59a660]
cmp ecx, edx
jne 0x485f5b
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov ebx, ecx
shr ecx, 0x1f
shl ecx, 0x1f
test ecx, ecx
je 0x485f3a
shl ebx, 1
mov ecx, edx
shr edx, 0x1f
or edx, ebx
shl ecx, 1
shr ecx, 0x1f
mov ebx, edx
shl edx, 1
or edx, ecx
mov ecx, edx
add edx, 0xd7b17f80
mov dword [esp + 0xcc], edx
shr ebx, 0x1f
add ecx, 0xd7b17f80
adc ebx, 0xd
mov dword [esp + 0xd0], ebx
mov ecx, dword [esp + 0xc4]
and ecx, 0x3fffffff
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd4], eax
lea edi, [esp + 0x110]
lea esi, [esp + 0xc4]
call fcn.0044b0be
add esp, 0xec
ret
mov eax, ecx
jmp 0x485ecb
mov ecx, dword [esp + 0x10c]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.00486140
mov edi, dword [esp + 0x14]
jmp 0x485e0d
mov eax, dword [esp + 0x3c]
add eax, 0xffffffff
mov ecx, dword [esp + 0x10c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
adc eax, 0xffffffff
mov dword [esp + 8], eax
call fcn.00486140
mov edi, dword [esp + 0x14]
jmp 0x485e0d
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x485e22
sar eax, 7
sub eax, esi
imul eax, eax, 0x190
mov edx, dword [esp + 0x2c]
sub edx, eax
test edx, edx
sete al
jmp 0x485ce7
mov ebp, eax
xor eax, eax
jmp 0x485ce7
mov eax, ecx
mov ecx, ebp
jmp 0x485a79
mov eax, edi
mov ebp, dword [esp + 0xf8]
jmp 0x485a47
mov edi, eax
mov eax, ecx
mov ecx, ebp
jmp 0x485a09
mov eax, edi
mov ebp, dword [esp + 0xfc]
jmp 0x4859e1
mov edi, eax
mov eax, ecx
mov ecx, ebp
jmp 0x4859a3
mov ebp, dword [esp + 0x100]
jmp 0x48597b
mov ebp, eax
mov eax, edx
jmp 0x48593f
mov eax, ecx
mov ecx, dword [esp + 0x104]
jmp 0x485914
mov ebx, ebp
mov esi, edx
jmp 0x4858d4
mov edx, ebx
mov ebp, dword [esp + 0xf0]
jmp 0x4858ab
call fcn.00424c30
ud2
lea eax, [0x4e7440]
mov dword [esp], eax
lea eax, [0x51dc58]
mov dword [esp + 4], eax
call fcn.00425a80
ud2
call fcn.004491a0
jmp fcn.00485830