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

Disassembly:
sub esp, 0xfc
push esi
mov esi, ecx
cmp byte [esi + 0x25f], 0xff
je 0x4960ae
mov ecx, dword [esi + 0x304]
mov eax, dword [esi + 0x40c]
sub eax, ecx
push ebx
cdq
sub eax, edx
push ebp
sar eax, 1
add eax, ecx
push edi
mov dword [esi + 0x248], eax
mov ecx, dword [esi + 0x308]
mov eax, dword [esi + 0x410]
mov edi, dword [esi + 0x248]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esi + 0x24c], eax
mov ecx, dword [esi + 0x30c]
mov eax, dword [esi + 0x414]
mov ebx, dword [esi + 0x24c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ebp, [eax + ecx]
mov dword [esi + 0x250], ebp
mov ecx, dword [esi + 0x30c]
mov eax, dword [esi + 0x304]
mov edx, dword [esi + 0x308]
sub ecx, ebp
sub eax, edi
sar ecx, 0xc
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x40c]
sub ecx, edi
mov edi, dword [esi + 0x410]
sub edx, ebx
sub edi, ebx
mov ebx, dword [esi + 0x414]
sub ebx, ebp
mov ebp, dword [esi + 0x284]
sar eax, 0xc
sar ecx, 0xc
sar edx, 0xc
sar edi, 0xc
sar ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x80], ebp
jge 0x495a53
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x495a66
and ecx, 0xffff
and eax, 0xffff
shl ecx, 0x10
or ecx, eax
mov dword [ebp + 0xc], ecx
cmp edx, edi
jge 0x495a80
and edx, 0xffff
and edi, 0xffff
shl edx, 0x10
or edx, edi
mov dword [ebp + 0x10], edx
jmp 0x495a94
and edi, 0xffff
and edx, 0xffff
shl edi, 0x10
or edi, edx
mov dword [ebp + 0x10], edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
jge 0x495ab1
and eax, 0xffff
and ebx, 0xffff
shl eax, 0x10
or eax, ebx
mov dword [ebp + 0x14], eax
jmp 0x495ac4
and ebx, 0xffff
and eax, 0xffff
shl ebx, 0x10
or ebx, eax
mov dword [ebp + 0x14], ebx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], edi
jmp 0x495aea
mov edi, dword [esp + 0x34]
cmp edi, ebx
jne 0x495c8d
mov ax, word [0x55302c]
mov cx, word [0x55302e]
mov dx, word [0x553030]
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
mov word [esp + 0x1a], cx
push eax
lea ecx, [esp + 0x8c]
push esi
push ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov word [esp + 0x2a], 2
mov word [esp + 0x28], dx
call fcn.00453ee0
add esp, 0xc
xor edi, edi
lea eax, [edi + edi*2]
mov dword [esp + 0x6c], ebx
shl eax, 1
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dx, word [eax + 0x553014]
mov cx, word [eax + 0x553016]
mov word [esp + 0x18], dx
mov dx, word [eax + 0x553018]
lea eax, [esp + 0x18]
mov word [esp + 0x1a], cx
push eax
lea ecx, [esp + 0x70]
push esi
push ecx
mov word [esp + 0x28], dx
call fcn.00453ee0
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x88]
lea ecx, [esp + 0x6c]
push edx
push eax
lea edx, [esp + 0xe4]
push ecx
push edx
mov dword [esp + 0x20], 6
call fcn.004e7760
add esp, 0xc
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004e7840
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x5c]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x64], edx
lea edx, [esp + 0x60]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x6c], eax
call fcn.00470430
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dx, word [esp + 0x6c]
mov word [ebp + edi*8 + 0x2fc], ax
mov word [ebp + edi*8 + 0x2fe], cx
mov word [ebp + edi*8 + 0x300], dx
mov edx, dword [esp + 0x80]
mov word [ebp + edi*8 + 0x302], bx
sub edx, dword [esi + 0x248]
add esp, 0x14
sar edx, 0xc
mov word [esp + 0x78], dx
mov edx, dword [esp + 0x70]
sub edx, dword [esi + 0x24c]
sar edx, 0xc
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0x74]
sub edx, dword [esi + 0x250]
sar edx, 0xc
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x78]
mov dword [ebp + edi*8 + 0x1c], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + edi*8 + 0x20], edx
cmp edi, ebx
mov word [ebp + edi*8 + 0x22], bx
jne 0x495c7e
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
inc edi
cmp edi, 4
jb 0x495b49
jmp 0x49607a
cmp edi, 0x16
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jne 0x495cf1
lea eax, [esi + 0x40c]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], eax
lea edx, [eax - 0xc]
mov dword [esp + 0x14], 6
push edx
push eax
lea eax, [esp + 0x100]
push eax
call fcn.004e7760
add esp, 0xc
lea ecx, [esp + 0xb0]
push eax
push ecx
call fcn.004e7840
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
jmp 0x495d4e
lea eax, [edi + edi*2]
lea ecx, [esp + 0x10]
lea edx, [edi + edi*2 + 3]
push ecx
lea eax, [esi + eax*4 + 0x304]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + edx*4 + 0x304]
mov dword [esp + 0x18], 6
push eax
push ecx
call fcn.004e7760
add esp, 0xc
lea edx, [esp + 0xd4]
push eax
push edx
call fcn.004e7840
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00470430
lea eax, [esp + 0x30]
push eax
call fcn.0046d640
lea ecx, [esp + 0x44]
push ecx
call fcn.0046d670
call fcn.0046d700
lea edx, [esp + 0x54]
push edx
call fcn.0046d790
lea eax, [esp + 0x58]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00470430
lea edx, [esp + 0x60]
push edx
call fcn.0046d640
lea eax, [esp + 0x48]
push eax
call fcn.0046d670
call fcn.0046d700
lea ecx, [esp + 0x5c]
push ecx
call fcn.0046d790
lea ecx, [edi + 1]
add esp, 0x28
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
shl edx, 1
and edx, 0xfff
movsx eax, word [edx*4 + 0x610c48]
shl eax, 3
mov ecx, eax
mov eax, 0x10
sar ecx, 0xc
sub eax, ecx
cmp edi, 0x16
mov dword [esp + 0x5c], eax
jne 0x495f5e
mov dx, word [0x55304c]
mov ax, word [0x55304e]
mov cx, word [0x553050]
mov word [esp + 0x20], dx
lea edx, [esp + 0x20]
mov word [esp + 0x22], ax
push edx
lea eax, [esp + 0x98]
push esi
push eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov word [esp + 0x32], bx
mov word [esp + 0x30], cx
call fcn.00453ee0
mov eax, 0x553036
add esp, 0xc
mov dword [esp + 0x14], eax
lea edi, [ebp + 0x2de]
jmp 0x495e58
mov eax, dword [esp + 0x14]
mov cx, word [eax - 2]
mov dx, word [eax]
mov ax, word [eax + 2]
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
mov word [esp + 0x22], dx
push ecx
lea edx, [esp + 0x64]
push esi
push edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x30], ax
call fcn.00453ee0
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x60]
push eax
push ecx
lea eax, [esp + 0xf0]
push edx
push eax
mov dword [esp + 0x20], 6
call fcn.004e7760
add esp, 0xc
lea ecx, [esp + 0x104]
push eax
push ecx
call fcn.004e7840
mov edx, dword [eax]
mov dword [esp + 0xac], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xac]
mov edx, dword [eax + 8]
lea eax, [edi + 0x2de]
push eax
push ecx
mov dword [esp + 0xbc], edx
call fcn.00470520
mov edx, dword [esp + 0x74]
mov word [edi + 0x2e4], bx
mov ecx, dword [esi + 0x248]
mov eax, dword [esp + 0x78]
sub edx, ecx
mov ecx, dword [esp + 0x7c]
sar edx, 0xc
mov word [edi - 2], dx
mov edx, dword [esi + 0x24c]
sub eax, edx
add esp, 0x14
sar eax, 0xc
mov word [edi], ax
mov eax, dword [esi + 0x250]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 0xc
mov word [edi + 2], cx
mov word [edi + 4], bx
add eax, 6
add edi, 8
cmp eax, 0x55304e
mov dword [esp + 0x14], eax
jl 0x495e54
jmp 0x49607a
lea eax, [edi + 0x18]
xor ecx, ecx
shl eax, 5
mov dword [esp + 0x10], ecx
add eax, ebp
and ecx, 0xfff
add eax, 8
shl ecx, 2
movsx edx, word [ecx + 0x610c4a]
movsx ecx, word [ecx + 0x610c48]
mov edi, ecx
mov ebp, edx
imul edi, dword [esp + 0x44]
imul ebp, dword [esp + 0x38]
sar edi, 0xc
sar ebp, 0xc
add edi, ebp
mov dword [esp + 0x84], edi
mov word [eax - 0xc], di
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
imul edi, ecx
imul ebp, edx
sar edi, 0xc
sar ebp, 0xc
add edi, ebp
mov word [eax - 0xa], di
mov ebp, dword [esp + 0x4c]
imul ebp, ecx
mov ecx, dword [esp + 0x40]
mov word [eax - 6], bx
imul ecx, edx
movsx edx, word [esp + 0x84]
imul edx, dword [esp + 0x5c]
sar ebp, 0xc
sar ecx, 0xc
add ecx, ebp
mov ebp, dword [esp + 0x14]
mov word [eax - 8], cx
add edx, dword [ebp]
mov ebp, dword [esi + 0x248]
sar ebp, 0xc
shr edx, 0xc
sub edx, ebp
mov ebp, dword [esp + 0x14]
movsx edi, di
mov word [eax - 0x2ec], dx
mov edx, dword [esp + 0x5c]
imul edi, edx
add edi, dword [ebp + 4]
mov ebp, dword [esi + 0x24c]
movsx ecx, cx
imul ecx, edx
mov edx, dword [esp + 0x14]
shr edi, 0xc
sar ebp, 0xc
sub edi, ebp
mov word [eax - 0x2ea], di
mov edi, dword [edx + 8]
mov edx, dword [esi + 0x250]
add ecx, edi
shr ecx, 0xc
sar edx, 0xc
sub ecx, edx
mov word [eax - 0x2e6], bx
mov word [eax - 0x2e8], cx
mov ecx, dword [esp + 0x10]
add ecx, 0x400
cmp ecx, 0x1000
mov dword [esp + 0x10], ecx
jl 0x495f6c
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 0x17
mov dword [esp + 0x34], eax
jb 0x495ae6
add esi, 0x240
mov dword [0x660f98], 1
push esi
call fcn.004739a0
add esp, 4
mov dword [0x660f98], ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xfc
ret