Function at 0x495f50
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.00538c10
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
add edx, 7
push edx
add eax, 7
push eax
lea ecx, [ebp + 0x2720]
call fcn.00538c10
push 0x143c
call fcn.0041b230
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 0x495fb0
mov eax, 0x21e75e8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495fc2
sub eax, edx
mov dword [esp + 0x14], eax
je 0x49603d
mov eax, 0x21e75e8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495fe0
push 0
sub eax, edx
push eax
push 0x21e75e8
mov ecx, 0x21f1c78
call fcn.00532f50
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x6a84d0]
call fcn.005b8b18
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push 0x21e75e8
push 0
push 0xffffffffffffffff
add ecx, 0x20
sub edx, eax
push ecx
add edx, 0x86
push edx
push 0x21f1c78
call fcn.00531220
add esp, 0x18
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496047
sub eax, edx
mov dword [esp + 0x14], eax
je 0x4960c3
lea eax, [esp + 0xc0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496060
sub eax, edx
push 0
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, 0x21f1c78
call fcn.00532f50
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x6a84d0]
call fcn.005b8b18
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 0x21f1c78
call fcn.00531220
add esp, 0x18
mov ecx, 0x21f1c78
call fcn.005312a0
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.00517c10
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x53c]
call fcn.00517c10
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0xa10]
call fcn.00517c10
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0xee4]
call fcn.00517c10
mov ebx, dword [0x21ea284]
mov ecx, dword [0x21ea280]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x14], edi
jne 0x49614e
xor eax, eax
jmp 0x496155
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x496399
test ecx, ecx
jne 0x496165
xor eax, eax
jmp 0x49616c
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x496393
lea eax, [ecx + edi*4]
mov dword [0x21ea28c], eax
mov edx, dword [eax]
test edx, edx
mov dword [esp + 0x18], edx
je 0x496393
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 0x496393
mov eax, dword [ebp + 0x2754]
test eax, eax
mov byte [esp + 0x20], 0x82
mov byte [esp + 0x1c], 0x80
mov byte [esp + 0x24], 0x78
jne 0x49620e
mov eax, dword [ebp + 0x36ac]
mov ecx, dword [0x706454]
lea edi, [eax + 0x112]
cmp ecx, edi
jl 0x49620e
add eax, 0x230
cmp ecx, eax
jg 0x49620e
mov ecx, dword [ebp + 0x36b0]
lea eax, [esi + ecx]
mov ecx, dword [0x706458]
lea edi, [eax + 0x6e]
cmp ecx, edi
jl 0x49620e
add eax, 0x80
cmp ecx, eax
jg 0x49620e
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 0x496227
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x24], 0xff
mov al, byte [edx + 0x73]
mov cl, byte [0x21ea32c]
mov edx, dword [ebp + 0x36b0]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp al, cl
mov ecx, dword [esp + 0x20]
jbe 0x4962a1
push 0x6ad0c0
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 0x21f1c78
call fcn.005312c0
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x36b0]
push 0x6ad0c0
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 0x21f1c78
call fcn.005312c0
add esp, 0x40
jmp 0x496306
movzx eax, al
push eax
push 0x6ac9c4
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 0x21f1c78
call fcn.005312c0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x74]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x36b0]
push eax
push 0x6a8770
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 0x21f1c78
call fcn.005312c0
add esp, 0x48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x36b0]
add edx, 4
push edx
push 0x6a9d2c
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 0x21f1c78
call fcn.005312c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x36b0]
add ecx, 0x1d
push ecx
push 0x6a9d2c
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 0x21f1c78
call fcn.005312c0
add esi, 0x1b
add esp, 0x48
cmp esi, 0x144
jg 0x496399
mov ebx, dword [0x21ea284]
mov ecx, dword [0x21ea280]
mov edi, dword [esp + 0x14]
inc edi
jmp 0x496142
mov ecx, 0x21f1c78
call fcn.005312b0
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x275c]
call fcn.0051b160
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x4a74]
call fcn.0051b160
fld dword [ebp + 0x5970]
lea esi, [ebp + 0x4a04]
call fcn.005b8b18
push eax
mov ecx, esi
call fcn.0051c2b0
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
mov ecx, esi
call fcn.0051c5d0
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x36b4]
call fcn.00517c10
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x3b88]
call fcn.00517c10
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x405c]
call fcn.00517c10
mov eax, dword [ebp + 0x36b0]
mov ecx, dword [ebp + 0x36ac]
push eax
push ecx
lea ecx, [ebp + 0x4530]
call fcn.00517c10
mov edx, dword [ebp + 0x36b0]
mov eax, dword [ebp + 0x36ac]
push edx
push eax
lea ecx, [ebp + 0x59c4]
call fcn.00517c10
mov ecx, dword [ebp + 0x36b0]
mov edx, dword [ebp + 0x36ac]
push ecx
push edx
lea ecx, [ebp + 0x223c]
call fcn.00517c10
mov eax, dword [0x703c18]
mov ebx, 1
cmp eax, ebx
jne 0x496771
cmp dword [ebp + 0x2758], 4
jne 0x496771
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.00538c10
push esi
push edi
lea ecx, [ebp + 0x13b8]
call fcn.00517c10
push esi
push edi
lea ecx, [ebp + 0x188c]
call fcn.00517c10
cmp dword [ebp + 0x1d60], ebx
jne 0x4966ff
lea eax, [ebp + 0x24]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496510
push 0
sub eax, edx
push eax
lea ebx, [ebp + 0x24]
push ebx
mov ecx, 0x21f1c78
call fcn.00532f50
cmp eax, 0xc8
jle 0x4966b1
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 0x49664a
mov edi, edi
mov al, byte [ebx + ebp + 0x24]
test al, al
lea edi, [ebx + ebp + 0x24]
je 0x49664a
xor ecx, ecx
mov dword [esp + 0x18], 0
mov cl, byte [edi]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00408ec0
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 0x4965b0
sub eax, edx
push 0
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, 0x21f1c78
call fcn.00532f50
mov ecx, dword [esp + 0x18]
add ebx, ecx
cmp eax, 0xc8
je 0x4965ec
jg 0x496606
mov al, byte [ebx + ebp + 0x24]
test al, al
mov esi, dword [esp + 0x1c]
jne 0x496560
jmp 0x49664a
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 0x496641
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, 0x21f1c78
call fcn.00533760
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, 0x21f1c78
call fcn.00533760
mov edi, dword [esp + 0x14]
jmp 0x4966dd
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, 0x21f1c78
call fcn.00533760
push 0
push 0
push 0
lea ecx, [esi + 0x46]
push ecx
lea edx, [edi + 0x28]
push edx
mov ecx, 0x21f1c78
mov dword [0x84efa8], 0
call fcn.00535050
cmp dword [ebp + 0x1d60], 2
jne 0x496771
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, 0x21f1c78
call fcn.00533760
push 1
push 1
push 0xc8
push 0x3e
mov ecx, 0x21ec34c
mov dword [0x84efa8], 0
call fcn.005218a0
push 0
push 0
push 0
add esi, 0x8a
push esi
add edi, 0x23
push edi
mov ecx, 0x21f1c78
call fcn.00535050
mov ecx, dword [ebp + 0x2754]
test ecx, ecx
je 0x496807
call fcn.004bd040
cmp dword [ebp + 0x2758], 4
jne 0x496807
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 0x4967de
push 0
push 1
push 0x96
push 0x18
mov ecx, 0x21ec34c
call fcn.005218a0
push 0
push 0
push 0
push edi
push esi
mov ecx, 0x21f1c78
call fcn.00535050
jmp 0x496807
lea eax, [ebp + 0x2738]
push eax
push 0xa0
push 0
push 0xff
push 0xff
push 0xff
push edi
push esi
mov ecx, 0x21f1c78
call fcn.00533760
mov al, byte [ebp + 0x2239]
test al, al
je 0x4968e5
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.00538c10
mov eax, dword [ebp + 0x2730]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x21ea268
mov dword [esp + 0x1c], eax
call fcn.00529da0
mov eax, dword [esp + 0x18]
cmp eax, dword [0x21ea26c]
jne 0x496865
xor esi, esi
jmp 0x496868
mov esi, dword [eax + 0x10]
push 1
push 1
push 0xc8
push 0x3e
mov ecx, 0x21ec34c
mov dword [0x21ec384], 0x3f333333
call fcn.005218a0
add esi, 0x32
push esi
push 0x21ec34c
call fcn.00523d10
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, 0x21f1c78
call fcn.00535050
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.00517c10
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret