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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x2710]
call fcn.00533950
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
add edx, 0x11
push edx
add eax, 7
push eax
lea ecx, [ebp + 0x2720]
call fcn.00533950
push 0x143c
call fcn.0041b840
add esp, 4
lea edx, [esp + 0xc0]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4957a0
mov eax, 0x21e9920
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4957b2
sub eax, edx
mov dword [esp + 0x14], eax
je 0x49582d
mov eax, 0x21e9920
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4957d0
push 0
sub eax, edx
push eax
push 0x21e9920
mov ecx, 0x21f3fa0
call fcn.0052dca0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x6a95b8]
call fcn.005ba9a8
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push 0x21e9920
push 0
push 0xffffffffffffffff
add ecx, 0x20
sub edx, eax
push ecx
add edx, 0x86
push edx
push 0x21f3fa0
call fcn.0052bf10
add esp, 0x18
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495837
sub eax, edx
mov dword [esp + 0x14], eax
je 0x4958b3
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495850
sub eax, edx
push 0
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, 0x21f3fa0
call fcn.0052dca0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x6a95b8]
call fcn.005ba9a8
mov edx, dword [ebp + 0x36b0]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [ebp + 0x36ac]
push 0
push 0xffffffffffffffff
add edx, 0x36
sub ecx, eax
push edx
add ecx, 0x86
push ecx
push 0x21f3fa0
call fcn.0052bf10
add esp, 0x18
mov ecx, 0x21f3fa0
call fcn.0052bf90
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
xor esi, esi
push eax
lea ecx, [ebp + 0x68]
mov dword [esp + 0x30], esi
call fcn.00512690
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x53c]
call fcn.00512690
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0xa10]
call fcn.00512690
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0xee4]
call fcn.00512690
mov ebx, dword [0x21ec5bc]
mov ecx, dword [0x21ec5b8]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x14], edi
jne 0x49593e
xor eax, eax
jmp 0x495945
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x495b89
test ecx, ecx
jne 0x495955
xor eax, eax
jmp 0x49595c
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x495b83
lea eax, [ecx + edi*4]
mov dword [0x21ec5c4], eax
mov edx, dword [eax]
test edx, edx
mov dword [esp + 0x18], edx
je 0x495b83
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcomp dword [ebp + 0x3658]
fnstsw ax
test ah, 5
jnp 0x495b83
mov eax, dword [ebp + 0x2754]
test eax, eax
mov byte [esp + 0x20], 0x82
mov byte [esp + 0x1c], 0x80
mov byte [esp + 0x24], 0x78
jne 0x4959fe
mov eax, dword [ebp + 0x36ac]
mov ecx, dword [0x708794]
lea edi, [eax + 0x112]
cmp ecx, edi
jl 0x4959fe
add eax, 0x230
cmp ecx, eax
jg 0x4959fe
mov ecx, dword [ebp + 0x36b0]
lea eax, [esi + ecx]
mov ecx, dword [0x708798]
lea edi, [eax + 0x6e]
cmp ecx, edi
jl 0x4959fe
add eax, 0x80
cmp ecx, eax
jg 0x4959fe
mov byte [esp + 0x20], 0xaa
mov byte [esp + 0x1c], 0xaa
mov byte [esp + 0x24], 0xaa
mov eax, dword [ebp + 0x2730]
cmp eax, dword [edx]
jne 0x495a17
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x24], 0xff
mov al, byte [edx + 0x73]
mov cl, byte [0x21ec660]
mov edx, dword [ebp + 0x36b0]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp al, cl
mov ecx, dword [esp + 0x20]
jbe 0x495a91
push 0x6ae138
push 0
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0x36ac]
lea eax, [esi + edx + 0x6e]
push eax
add ecx, 0x112
push ecx
push 0x21f3fa0
call fcn.0052bfb0
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x36b0]
push 0x6ae138
push 0
push edi
push ebx
push edx
mov edx, dword [ebp + 0x36ac]
lea ecx, [esi + eax + 0x6e]
push ecx
add edx, 0x19f
push edx
push 0x21f3fa0
call fcn.0052bfb0
add esp, 0x40
jmp 0x495af6
movzx eax, al
push eax
push 0x6ada44
push 0
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0x36ac]
lea eax, [esi + edx + 0x6e]
push eax
add ecx, 0x112
push ecx
push 0x21f3fa0
call fcn.0052bfb0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x74]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x36b0]
push eax
push 0x6a9858
push 0
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0x36ac]
lea eax, [esi + edx + 0x6e]
push eax
add ecx, 0x19f
push ecx
push 0x21f3fa0
call fcn.0052bfb0
add esp, 0x48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x36b0]
add edx, 4
push edx
push 0x6aae14
push 0
push edi
push ebx
push eax
mov eax, dword [ebp + 0x36ac]
lea edx, [esi + ecx + 0x6e]
push edx
add eax, 0x131
push eax
push 0x21f3fa0
call fcn.0052bfb0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x36b0]
add ecx, 0x1d
push ecx
push 0x6aae14
push 0
push edi
push ebx
push edx
mov edx, dword [ebp + 0x36ac]
lea ecx, [esi + eax + 0x6e]
push ecx
add edx, 0x1e0
push edx
push 0x21f3fa0
call fcn.0052bfb0
add esi, 0x1b
add esp, 0x48
cmp esi, 0x144
jg 0x495b89
mov ebx, dword [0x21ec5bc]
mov ecx, dword [0x21ec5b8]
mov edi, dword [esp + 0x14]
inc edi
jmp 0x495932
mov ecx, 0x21f3fa0
call fcn.0052bfa0
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x275c]
call fcn.00515e30
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x4a74]
call fcn.00515e30
fld dword [ebp + 0x5970]
lea esi, [ebp + 0x4a04]
call fcn.005ba9a8
push eax
mov ecx, esi
call fcn.00516f80
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
mov ecx, esi
call fcn.005172b0
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x36b4]
call fcn.00512690
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x3b88]
call fcn.00512690
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x405c]
call fcn.00512690
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x4530]
call fcn.00512690
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x59c4]
call fcn.00512690
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x223c]
call fcn.00512690
mov eax, dword [0x705f58]
mov ebx, 1
cmp eax, ebx
jne 0x495f61
cmp dword [ebp + 0x2758], 4
jne 0x495f61
mov esi, dword [ebp + 0x36b0]
mov edi, dword [ebp + 0x36ac]
add esi, 0x8c
add edi, 0xa0
push esi
push edi
lea ecx, [ebp + 4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call fcn.00533950
push esi
push edi
lea ecx, [ebp + 0x13b8]
call fcn.00512690
push esi
push edi
lea ecx, [ebp + 0x188c]
call fcn.00512690
cmp dword [ebp + 0x1d60], ebx
jne 0x495eef
lea eax, [ebp + 0x24]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495d00
push 0
sub eax, edx
push eax
lea ebx, [ebp + 0x24]
push ebx
mov ecx, 0x21f3fa0
call fcn.0052dca0
cmp eax, 0xc8
jle 0x495ea1
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [ebp + 0x24]
xor ebx, ebx
test al, al
je 0x495e3a
mov edi, edi
mov al, byte [ebx + ebp + 0x24]
test al, al
lea edi, [ebx + ebp + 0x24]
je 0x495e3a
xor ecx, ecx
mov dword [esp + 0x18], 0
mov cl, byte [edi]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00409100
mov ecx, dword [esp + 0x20]
mov edx, ecx
mov esi, edi
shr ecx, 2
lea edi, [esp + ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 8
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495da0
sub eax, edx
push 0
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, 0x21f3fa0
call fcn.0052dca0
mov ecx, dword [esp + 0x18]
add ebx, ecx
cmp eax, 0xc8
je 0x495ddc
jg 0x495df6
mov al, byte [ebx + ebp + 0x24]
test al, al
mov esi, dword [esp + 0x1c]
jne 0x495d50
jmp 0x495e3a
mov ecx, 0x41
sub ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [ebx + ebp + 0x24]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x495e31
sub ebx, ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea esi, [esp + 0x28]
lea edi, [esp + ebx + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
sub ecx, ebx
mov eax, ecx
shr ecx, 2
lea esi, [ebx + ebp + 0x24]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push 0x1f4
push 0
push 0xff
push 0xff
push 0xff
lea edx, [esi + 0x8a]
push edx
add edi, 0x23
push edi
mov ecx, 0x21f3fa0
call fcn.0052e470
lea eax, [esp + 0x78]
push eax
push 0x1f4
push 0
push 0xff
push 0xff
push 0xff
lea ecx, [esi + 0x99]
push ecx
push edi
mov ecx, 0x21f3fa0
call fcn.0052e470
mov edi, dword [esp + 0x14]
jmp 0x495ecd
push ebx
push 0x1f4
push 0
push 0xff
push 0xff
push 0xff
lea edx, [esi + 0x8a]
push edx
lea eax, [edi + 0x23]
push eax
mov ecx, 0x21f3fa0
call fcn.0052e470
push 0
push 0
push 0
lea ecx, [esi + 0x46]
push ecx
lea edx, [edi + 0x28]
push edx
mov ecx, 0x21f3fa0
mov dword [0x8512e8], 0
call fcn.0052fd90
cmp dword [ebp + 0x1d60], 2
jne 0x495f61
lea eax, [ebp + 0x2738]
push eax
push 0x1f4
push 0
push 0xff
push 0xff
push 0xff
lea ecx, [esi + 0x46]
push ecx
lea edx, [edi + 0x28]
push edx
mov ecx, 0x21f3fa0
call fcn.0052e470
push 1
push 1
push 0xc8
push 0x3e
mov ecx, 0x21ee674
mov dword [0x8512e8], 0
call fcn.0051c5a0
push 0
push 0
push 0
add esi, 0x8a
push esi
add edi, 0x23
push edi
mov ecx, 0x21f3fa0
call fcn.0052fd90
mov ecx, dword [ebp + 0x2754]
test ecx, ecx
je 0x495ff7
call fcn.004bc3c0
cmp dword [ebp + 0x2758], 4
jne 0x495ff7
mov eax, dword [0x6f355c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x6f3560]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp + 0x2734]
sar esi, 1
sar edi, 1
sub esi, 0x48
sub edi, 0x24
test eax, eax
je 0x495fce
push 0
push 1
push 0x96
push 0x18
mov ecx, 0x21ee674
call fcn.0051c5a0
push 0
push 0
push 0
push edi
push esi
mov ecx, 0x21f3fa0
call fcn.0052fd90
jmp 0x495ff7
lea eax, [ebp + 0x2738]
push eax
push 0xa0
push 0
push 0xff
push 0xff
push 0xff
push edi
push esi
mov ecx, 0x21f3fa0
call fcn.0052e470
mov al, byte [ebp + 0x2239]
test al, al
je 0x4960d5
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
add ecx, 0x8c
push ecx
add edx, 0xa0
push edx
lea ecx, [ebp + 0x14]
call fcn.00533950
mov eax, dword [ebp + 0x2730]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x21ec5a0
mov dword [esp + 0x1c], eax
call fcn.0054e1d0
mov eax, dword [esp + 0x18]
cmp eax, dword [0x21ec5a4]
jne 0x496055
xor esi, esi
jmp 0x496058
mov esi, dword [eax + 0x10]
push 1
push 1
push 0xc8
push 0x3e
mov ecx, 0x21ee674
mov dword [0x21ee6ac], 0x3f333333
call fcn.0051c5a0
add esi, 0x32
push esi
push 0x21ee674
call fcn.0051ea00
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
add esp, 8
push 0
push 0
push 0
add eax, 0xbe
add ecx, 0xbc
push eax
push ecx
mov ecx, 0x21f3fa0
call fcn.0052fd90
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
add edx, 0x8c
push edx
add eax, 0xa0
push eax
lea ecx, [ebp + 0x1d64]
call fcn.00512690
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret