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

Disassembly:
push 0xffffffffffffffff
push 0x4f896c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004e928c
mov ecx, dword [eax + 4]
call fcn.004d26b3
mov eax, dword [ebp + 0xbc]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x83c], esi
je 0x495166
mov eax, dword [ebp + 0x25c]
mov edi, dword [0x4fd6ac]
push esi
push esi
push 0x184
push eax
call edi
mov ecx, dword [ebp + 0x2a4]
push esi
push esi
push 0x184
push ecx
call edi
lea edx, [esp + 0x2e4]
push edx
push 2
call fcn.0040f720
lea eax, [esp + 0x2ec]
push esi
push eax
call fcn.00436e80
push 1
mov ebx, eax
push 0x52535c
push 0x5279a4
push ebx
mov dword [esp + 0x30], ebx
call fcn.00437330
add esp, 0x20
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x4950b8
mov ecx, dword [0x52ab2c]
push esi
push 0x5279a4
lea edx, [esp + 0x288]
push ecx
push edx
call dword [0x4fd6ec]
mov edx, dword [esp + 0x20]
push 0x5306e0
lea eax, [esp + 0x294]
push 0x52799c
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.00437280
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x25c]
add esp, 0x24
push eax
push 0
push 0x180
push ecx
call edi
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
call fcn.004d2e05
mov edx, dword [0x531940]
add esp, 4
xor eax, eax
cmp esi, edx
sete al
and eax, 0xffff
shl eax, 0x10
push eax
mov eax, dword [ebp + 0x25c]
push ebx
push 0x19a
push eax
call edi
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x49501f
mov ebx, dword [esp + 0x10]
mov eax, dword [0x531950]
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x49510a
mov ecx, dword [0x53194c]
mov dword [esp + 0x2c], 0
push 0
push 0
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x34]
push ecx
push 0
mov eax, dword [edx]
mov ecx, ebp
push eax
call fcn.00495fd0
test eax, eax
jl 0x495101
mov edx, dword [ebp + 0x2a4]
push esi
push eax
push 0x19a
push edx
call edi
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4950c7
push 0xffffffffffffffff
push 0
push ebx
call fcn.00436fa0
mov eax, dword [ebp + 0x1e4]
add esp, 0xc
push 0
push 0
push 0x146
push eax
call edi
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x495ce1
mov ecx, dword [ebp + 0x1e4]
push 0
push esi
push 0x150
push ecx
call edi
cmp eax, 3
jne 0x49515c
mov edx, dword [ebp + 0x1e4]
push 0
push esi
push 0x14e
push edx
call edi
inc esi
cmp esi, ebx
jl 0x495135
jmp 0x495ce1
mov eax, dword [0x52c200]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x844]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
mov byte [esp + 0x848], 1
call fcn.00403ce0
add esp, 0xc
test eax, eax
jne 0x49519e
or edx, 0xffffffff
mov dword [esp + 0x14], edx
jmp 0x4951a2
mov edx, dword [esp + 0x14]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x1c], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x62c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x848]
cmp eax, esi
jne 0x495200
cmp edx, esi
jge 0x495208
mov edi, dword [esp + 0x844]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x2c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x49563a
cmp edx, esi
jl 0x495353
cmp dword [esp + 0x84c], esi
je 0x495274
push edx
call fcn.00402f40
mov edi, eax
add esp, 4
cmp edi, esi
je 0x4955ea
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], esi
jne 0x4952d1
cmp dword [esp + 0x850], esi
jne 0x4952d1
lea eax, [edx*8]
mov ecx, dword [0x5306e8]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x10]
cmp eax, esi
je 0x4952d1
cmp byte [eax], 0x2f
jne 0x49527b
push eax
lea ecx, [esp + 0x1c]
call fcn.004d3224
jmp 0x4952cd
mov edi, 1
jmp 0x495228
add ecx, 0x4c
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d3224
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
cmp eax, esi
jle 0x4952a5
cmp byte [eax + ecx - 1], 0x2f
je 0x4952a5
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.004d342a
mov ecx, dword [esp + 0x14]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [0x5306e8]
shl edx, 4
add edx, ecx
mov ecx, dword [eax + edx*8 + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d3403
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2e4]
push esi
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [edx*8]
push ecx
mov ecx, dword [0x5306e8]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
lea ecx, [ecx + eax*8]
call fcn.0042ab30
test eax, eax
je 0x495313
lea edx, [esp + 0x2e4]
lea ecx, [esp + 0x18]
push edx
call fcn.004d3224
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5306e8]
lea ebx, [ebp + 0x2c4]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
lea eax, [edx + eax*8 + 0x254]
push eax
push ecx
mov ecx, dword [0x52aec8]
push ecx
push ebx
call dword [0x4fd6ec]
add esp, 0x10
jmp 0x4955e6
push ebx
call fcn.00410ba0
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x4955bf
mov dx, word [ebx]
lea eax, [esp + 0x40]
push eax
mov word [esp + 0x44], dx
mov byte [esp + 0x46], 0
call dword [0x4fd300]
cmp eax, esi
je 0x495390
cmp eax, 1
je 0x495390
cmp byte [ebx], 0x5c
jne 0x4955ea
push str.template.html
call dword [0x4fd230]
mov esi, eax
test esi, esi
mov dword [esp + 0x2c], esi
je 0x4953ec
mov edi, dword [0x4fd24c]
push str.hhctrl.ocx
push esi
call edi
push 0x52af5c
push esi
mov dword [0x55fd4c], eax
call edi
push str.iexplore
push esi
mov dword [0x55fd50], eax
call edi
push 0x52af38
push esi
mov dword [0x55fd54], eax
call edi
push 0x52af28
push esi
mov dword [0x55fd58], eax
call edi
mov dword [0x55fd5c], eax
mov eax, dword [0x55fd4c]
test eax, eax
je 0x4955ea
mov ecx, dword [0x55fd50]
test ecx, ecx
je 0x4955ea
mov ecx, dword [0x55fd54]
test ecx, ecx
je 0x4955ea
mov ecx, dword [0x55fd58]
test ecx, ecx
je 0x4955ea
mov ecx, dword [0x55fd5c]
test ecx, ecx
je 0x4955ea
cmp byte [ebx], 0x5c
jne 0x495539
mov esi, ebx
mov eax, 0x52af24
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x495469
test cl, cl
je 0x495465
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x495469
add eax, 2
add esi, 2
test cl, cl
jne 0x495441
xor eax, eax
jmp 0x49546e
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x4954dc
mov eax, dword [0x52c200]
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x844], 2
call fcn.00494e80
add esp, 8
test eax, eax
je 0x4954c9
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x62c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x83c], 1
call fcn.004d309b
jmp 0x495507
mov edi, dword [esp + 0x844]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x62c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
jne 0x4955ea
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
mov edi, 1
push edx
push edi
push edi
push 2
call dword [0x55fd54]
test eax, eax
jne 0x4955ea
mov dword [esp + 0x1c], edi
jmp 0x4955bf
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0x44]
push edx
push ecx
mov byte [esp + 0x4e], 0
mov dword [esp + 0x30], 0x200
mov byte [esp + 0x2f0], 0
call eax
mov al, byte [esp + 0x2e4]
test al, al
je 0x4955ea
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x58]
push 0
rep stosd dword es:[edi], eax
push 0x5306e0
lea ecx, [esp + 0x60]
lea edx, [esp + 0x48]
lea eax, [esp + 0x2ec]
push 0x5306e0
push ecx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call dword [0x55fd50]
test eax, eax
jne 0x4955ea
push ebx
call fcn.00410ba0
mov edi, eax
add esp, 4
test edi, edi
je 0x4955ea
mov edx, dword [esp + 0x844]
mov ecx, dword [0x531930]
push edx
call fcn.004125e0
mov ecx, dword [0x531930]
lea ebx, [ebp + 0x2c4]
push 0
push ebx
call fcn.00412560
test edi, edi
jne 0x49560f
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4955fc
push 0x5401
jmp 0x49568c
push 0xffffffffffffffff
push 0
push 0x5469
call fcn.004dad51
jmp 0x495cd0
mov ecx, dword [0x531930]
push 1
push ebx
call fcn.00412100
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x495636
lea edx, [esp + 0x62c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
jmp 0x49563e
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
xor eax, eax
cmp edx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
jl 0x495731
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push ecx
push eax
lea eax, [edx*8]
sub eax, edx
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, edx
mov edx, dword [0x5306e8]
lea ecx, [edx + ecx*8]
call fcn.0042b080
test eax, eax
jne 0x4956b0
mov ecx, dword [esp + 0x14]
push 0x5477
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [0x5306e8]
lea ecx, [ecx + eax*8]
call fcn.0042cb40
jmp 0x495cd0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x52aec8]
push edx
push eax
push ecx
push ebx
call dword [0x4fd6ec]
add esp, 0x10
mov eax, dword [ebp + 0x25c]
mov ebx, dword [0x4fd6ac]
push 0
push 0
push 0x184
push eax
call ebx
mov ecx, dword [ebp + 0x2a4]
push 0
push 0
push 0x184
push ecx
call ebx
mov edi, dword [esp + 0x14]
test edi, edi
jl 0x49580d
mov ecx, dword [esp + 0x10]
add edi, 0x64
mov al, byte [ecx]
test al, al
je 0x49571e
cmp al, 0x3a
je 0x49571a
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49570e
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0
je 0x49585d
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x49585d
cmp dword [esp + 0x1c], eax
jne 0x4956cb
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x78]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4957a3
cmp byte [esp + ecx + 0x77], 0x5c
je 0x4957a3
mov edi, 0x5279e0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x528a44
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x4ec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
call dword [0x4fd214]
cmp eax, 0xffffffff
mov dword [esp + 0x54], eax
jne 0x4956cb
mov edx, dword [esp + 0x844]
push edx
push 0
push 0x5477
call fcn.00436b40
add esp, 0xc
jmp 0x495cd0
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x5c
jne 0x49581d
mov edi, 2
jmp 0x49585d
mov eax, dword [esp + 0x844]
movzx si, byte [eax]
cmp si, 0x100
jae 0x49583f
and esi, 0xff
mov si, word [esi*2 + 0x55f1c0]
jmp 0x495855
mov ecx, esi
and ecx, 0xffff
push ecx
call dword [0x4fd660]
test ax, ax
je 0x495855
mov esi, eax
and esi, 0xffff
mov edi, esi
mov edx, dword [ebp + 0x1e4]
push 0
push 0
push 0x147
push edx
call ebx
push 0
push eax
mov eax, dword [ebp + 0x1e4]
push 0x150
push eax
call ebx
cmp edi, eax
je 0x4958dd
mov ecx, dword [ebp + 0x1e4]
push 0
push 0
push 0x146
push ecx
call ebx
xor esi, esi
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4958dd
mov edx, dword [ebp + 0x1e4]
push 0
push esi
push 0x150
push edx
call ebx
cmp edi, eax
je 0x4958c0
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x4958a0
jmp 0x4958dd
mov eax, dword [ebp + 0x1e4]
push 0
push esi
push 0x14e
push eax
call ebx
mov dword [ebp + 0x50c], esi
mov dword [ebp + 0x508], esi
mov ecx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 1
jl 0x495a78
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [0x5306e8]
shl edx, 4
add edx, ecx
cmp dword [eax + edx*8 + 0x44], 3
jne 0x495a78
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
je 0x4959bf
mov al, byte [edi + ecx]
cmp al, 0x5d
je 0x4959bf
test al, al
je 0x49594c
cmp al, 0x2e
je 0x49594c
cmp al, 0x5d
je 0x49594c
mov byte [esp + esi + 0x78], al
mov al, byte [edi + ecx + 1]
inc esi
inc edi
test al, al
jne 0x495936
test esi, esi
jle 0x4959b4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x495966
mov byte [esp + esi + 0x78], 0x5d
inc esi
mov dword [esp + 0x24], 0
mov edx, dword [ebp + 0x25c]
lea ecx, [esp + 0x78]
push ecx
push 0
push 0x180
push edx
mov byte [esp + esi + 0x88], 0
call ebx
mov ecx, dword [esp + 0x20]
and ecx, 0xffff
or ecx, 0x10000
push ecx
push eax
mov eax, dword [ebp + 0x25c]
push 0x19a
push eax
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
xor esi, esi
inc eax
mov dword [esp + 0x20], eax
jmp 0x4959b5
inc edi
cmp byte [edi + ecx], 0
jne 0x495927
mov ecx, dword [ebp + 0x25c]
push 0
push 0
push 0x18b
push ecx
call ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x495b39
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
jle 0x495a36
xor esi, esi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
lea eax, [esi + edx]
mov edx, dword [esp + 0x3c]
push edx
push ecx
mov edx, dword [eax + 0x208]
xor ecx, ecx
and edx, 0x4000
cmp edx, 0x4000
sete cl
push ecx
push eax
mov ecx, ebp
call fcn.00495fd0
mov eax, dword [esp + 0x34]
inc edi
add esi, 0x230
cmp edi, eax
jl 0x4959f1
mov edx, dword [esp + 0x3c]
push edx
call fcn.004d2e05
mov eax, dword [0x55f7c8]
add esp, 4
test eax, eax
je 0x495bb1
mov ecx, dword [esp + 0x14]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [0x5306e8]
lea ecx, [ecx + eax*8]
call fcn.0042c760
jmp 0x495bb1
mov ecx, dword [esp + 0x10]
mov al, byte [edi + ecx]
cmp al, 0x5c
je 0x495ab5
cmp al, 0x2f
je 0x495ab5
test al, al
je 0x495ab5
push eax
call dword [0x4fd2b0]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x495aab
mov cl, byte [edi + eax + 1]
test cl, cl
je 0x495aab
mov cl, byte [edi + eax]
mov byte [esp + esi + 0x78], cl
inc esi
inc edi
mov dl, byte [edi + eax]
mov byte [esp + esi + 0x78], dl
inc esi
jmp 0x495b25
mov edx, dword [esp + 0x24]
test edx, edx
je 0x495adc
mov byte [esp + esi + 0x78], al
mov al, byte [edi + ecx + 1]
inc esi
cmp al, 0x5c
mov dword [esp + 0x24], 0
jne 0x495adc
mov al, byte [edi + ecx + 1]
inc edi
mov byte [esp + esi + 0x78], al
inc esi
test esi, esi
mov byte [esp + esi + 0x78], 0
jle 0x495b29
mov edx, dword [ebp + 0x25c]
lea ecx, [esp + 0x78]
push ecx
push 0
push 0x180
push edx
call ebx
mov ecx, dword [esp + 0x20]
and ecx, 0xffff
or ecx, 0x10000
push ecx
push eax
mov eax, dword [ebp + 0x25c]
push 0x19a
push eax
call ebx
mov eax, dword [esp + 0x20]
xor esi, esi
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
cmp byte [edi + ecx], 0
je 0x4959bf
inc edi
jmp 0x495a7c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x495b68
mov edx, dword [esp + 0x844]
push 0
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00495d20
jmp 0x495bb1
mov esi, dword [0x4fd220]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x4f0]
lea eax, [esp + 0x2c]
push edx
and ecx, 0x10
push eax
lea edx, [esp + 0x524]
push ecx
push edx
mov ecx, ebp
call fcn.00495fd0
lea eax, [esp + 0x4ec]
push eax
push edi
call esi
test eax, eax
jne 0x495b72
push edi
call dword [0x4fd44c]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x495bc0
push eax
call dword [0x4fd20c]
mov ecx, dword [0x52c200]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x30]
mov byte [esp + 0x83c], 3
push edx
call fcn.00494a60
add esp, 4
test eax, eax
je 0x495cbf
lea eax, [ebp + 0x2c4]
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.004beb3b
add esp, 8
test eax, eax
jne 0x495cbf
mov eax, dword [0x55fcbc]
mov edx, dword [0x55fcc4]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 4]
push eax
mov eax, dword [ebp + 0x2a4]
push 0
push 0x18f
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x495cbf
mov edx, dword [ebp + 0x2a4]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [0x4fd6b4]
mov eax, dword [ebp + 0x2a4]
push 0
push 0
push 0x1a1
push eax
call ebx
mov edx, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x4c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
mov ecx, esi
sub ecx, eax
jns 0x495c73
xor ecx, ecx
jmp 0x495c9d
mov edx, dword [ebp + 0x2a4]
push 0
push 0
push 0x1a1
push edx
call ebx
mov edx, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x4c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp + 0x2a4]
push 0
push ecx
push 0x197
push eax
call ebx
mov ecx, dword [ebp + 0x2a4]
push esi
push 1
push 0x185
push ecx
call ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x83c], 1
call fcn.004d309b
lea ecx, [esp + 0x18]
mov byte [esp + 0x83c], 0
call fcn.004d309b
mov dword [esp + 0x83c], 0xffffffff
call fcn.004e928c
mov ecx, dword [eax + 4]
call fcn.004d26c8
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x830
ret 0x10