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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x14], ecx
test eax, eax
je 0x495d05
cmp dword [eax], 0x40
jl 0x495d05
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x74], eax
test byte [ecx + 0x3c], 0x20
je 0x495d16
and dword [ebp + 0x1c], 0xfbff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x495d39
push 0x40
push 0x100b1f10
push ebx
call fcn.0044ea7a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
and eax, 0x40
mov dword [esp + 0x40], eax
je 0x495d50
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x495d56
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov esi, dword [esp + 0x14]
lea edi, [eax + eax*8]
lea edi, [edi*8 + 0x2e7]
and edi, 0xfffffff8
lea ecx, [edi + 0x48]
call fcn.00444b5a
mov esi, eax
test esi, esi
je 0x495d84
lea eax, [edi + 0x48]
push eax
push 0
push esi
call fcn.004ce72a
add esp, 0xc
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x40], 0
je 0x495da0
mov eax, esi
mov ecx, edx
call fcn.0043e91a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
mov al, byte [esp + 0x1c]
mov byte [esi + 0x29], al
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.0044e18a
mov cx, word [ebp + 0x1c]
mov word [esi + 0x22], cx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov edx, dword [ebx + 0x1a8]
mov dword [esi + 0x38], edx
mov dword [esp + 0x6c], esi
lea eax, [esi + 0x148]
mov dword [esp + 0x70], eax
lea ecx, [esi + edi]
mov dword [esp + 0x78], ecx
lea edx, [ecx + 0x34]
mov dword [ecx + 0x2c], edx
xor edx, edx
mov word [ecx + 0x28], dx
mov edx, 4
mov word [ecx + 0x2a], dx
mov edx, dword [ebp + 0x10]
xor edi, edi
mov dword [ecx + 0x24], edi
mov dword [esi + 0x44], edi
push 0x48
push edx
lea ecx, [eax + 0x18]
push eax
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 8
mov dword [eax + 0x14], ecx
call fcn.004513fa
mov ecx, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x38], edi
cmp dword [ecx + 0xc], edi
jle 0x495ee3
cmp dword [esp + 0x1c], 0
je 0x495ea3
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + edi]
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x70], 3
mov dword [esp + 0x5c], 0x10005ff0
mov dword [esp + 0x60], 0x10005fd0
call fcn.0043c49a
add esp, 8
cmp dword [esp + 0x68], 0
je 0x495eca
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x34]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + edi]
push 8
push eax
push edx
push ebx
call fcn.004a689a
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x14]
lea eax, [ecx + edi + 0x14]
add esp, 0x10
or byte [eax], 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
inc eax
add edi, 0x30
mov dword [esp + 0x38], eax
cmp eax, dword [ecx + 0xc]
jl 0x495e4b
cmp dword [esp + 0x1c], 0
jne 0x495f03
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x495ef6
mov dl, byte [eax]
mov byte [esi + 0x24], dl
test dword [ebp + 0x1c], 0x400
je 0x495f03
mov byte [esi + 0x28], 1
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x495f26
add edx, 0x38
mov ebx, dword [edx]
mov edi, dword [esi + 0x44]
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x48], ebx
inc dword [esi + 0x44]
inc ecx
add edx, 0x50
cmp ecx, dword [eax]
jl 0x495f0f
mov edi, dword [esi + 0x154]
dec edi
lea ebx, [esi + 0x148]
js 0x495f4b
jmp 0x495f3a
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
call fcn.00473c9a
add esp, 0xc
dec edi
jns 0x495f3a
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x40], 0
jne 0x49663d
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
and eax, 0x400
mov dword [esp + 0x44], eax
je 0x495f99
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.0047f8aa
add esp, 0xc
test eax, eax
je 0x495f87
mov byte [esi + 0x28], 1
jmp 0x495f99
cmp dword [ebp + 0x14], 0
jne 0x495f99
mov edx, 0x200
or word [esi + 0x22], dx
mov dword [esi + 8], edi
cmp dword [esp + 0x1c], 1
jne 0x495fad
lea ecx, [esp + 0x6c]
call fcn.0047f0ba
test eax, eax
jne 0x496001
lea eax, [esp + 0x6c]
push eax
call fcn.0048f18a
add esp, 4
test eax, eax
jne 0x49663d
push eax
push esi
call fcn.004801ea
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp byte [ecx + 0x40], 0
jne 0x49663d
cmp dword [esi + 8], 0
je 0x496007
mov dx, word [esi + 0x20]
inc dx
movzx eax, dx
push eax
push esi
call fcn.004801ea
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp byte [ecx + 0x40], 0
jne 0x49663d
cmp dword [esi + 8], 0
jne 0x49601d
mov edx, dword [esp + 0x14]
test dword [edx + 0x18], 0x20000
je 0x49601d
or eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x49663d
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x40], 0
jne 0x49663d
cmp byte [esi + 0x29], 2
jb 0x49613d
test edi, edi
je 0x49613d
mov edx, 0x400
mov eax, ecx
test word [eax + 0x3c], dx
jne 0x49613d
push edi
lea edi, [esi + 0x44]
push edi
call fcn.0043b9da
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
add esp, 8
mov dword [esp + 0x3c], edx
test eax, eax
je 0x49608a
push eax
push edi
call fcn.0043b9da
or dword [esp + 0x40], eax
add esp, 8
or dword [esp + 0x3c], edx
cmp byte [esi + 0x29], 2
jb 0x49613d
mov bl, byte [esi + 0x29]
movzx eax, bl
lea edx, [eax + eax*8 + 0x5a]
mov eax, dword [esi + edx*8]
movzx ecx, byte [eax + 0x10]
mov edx, dword [esi + 4]
lea ecx, [ecx + ecx*4]
add ecx, ecx
test byte [edx + ecx*8 + 0x2c], 8
je 0x49613d
cmp word [esp + 0x44], 0
jne 0x4960c9
test dword [eax + 0x24], 0x1000
je 0x49613d
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
and ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], edx
or eax, ecx
jne 0x49613d
mov eax, dword [esp + 0x70]
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea edi, [edi + edi*2]
shl edi, 4
add edi, ecx
cmp ecx, edi
jae 0x49612b
mov ebx, dword [esp + 0x34]
jmp 0x496105
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, ebx
or eax, edx
je 0x49611b
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x496124
add ecx, 0x30
cmp ecx, edi
jb 0x496101
jmp 0x496128
cmp ecx, edi
jb 0x49613d
mov bl, byte [esi + 0x29]
dec dword [esp + 0x1c]
dec bl
mov byte [esi + 0x29], bl
cmp bl, 2
jae 0x496094
movsx ecx, word [esi + 0x20]
mov eax, dword [esi]
add dword [eax + 0x1a8], ecx
test byte [ebp + 0x1c], 4
je 0x496172
mov eax, dword [esi + 0x318]
test dword [eax + 0x24], 0x1000
je 0x496172
mov edx, dword [ebp + 0xc]
mov byte [esi + 0x26], 1
mov ecx, dword [edx + 0x18]
test byte [ecx + 0x2c], 0x20
jne 0x496172
and dword [eax + 0x24], 0xffffffbf
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x496565
lea edx, [esi + 0x318]
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax - 0x14]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*4]
add ecx, ecx
mov ebx, dword [edx + ecx*8 + 0x18]
lea eax, [edx + ecx*8 + 8]
mov edx, dword [ebx + 0x44]
mov edi, 0xfff0bdc0
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0
test edx, edx
je 0x496208
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
test ecx, ecx
jle 0x496208
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], edx
je 0x496204
mov ebx, dword [esp + 0x30]
inc edi
add eax, 0x10
rol ebx, 1
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
cmp edi, ecx
jl 0x4961ea
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x24]
mov al, byte [ebx + 0x2c]
mov ecx, dword [ecx]
mov dword [esp + 0x44], ecx
test al, 2
jne 0x4963c5
cmp dword [ebx + 0xc], 0
jne 0x4963c5
mov ecx, dword [ecx + 0x24]
test ecx, 0x400
je 0x496315
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
test eax, eax
je 0x496254
mov edx, dword [eax]
cmp edx, dword [esp + 0x14]
je 0x496250
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x496241
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x30]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x54], edi
jg 0x496284
mov edx, eax
push edx
call fcn.0044aaba
add esp, 4
test eax, eax
je 0x496280
mov edi, 1
jmp 0x4962a7
mov eax, dword [esp + 0x18]
inc dword [eax + 0x20]
mov edx, dword [eax + 4]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x96
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, edi
test ecx, ecx
je 0x4963c5
cmp byte [edx + 0x40], 0
jne 0x4963c5
test edi, edi
jns 0x4962d0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
mov edi, edx
call fcn.0044e00a
cmp dword [esp + 0x28], 0
mov dword [ebx + 0x10], 0
jne 0x496302
mov dword [ebx + 0x10], 0
mov byte [ebx + 1], 0
jmp 0x4963c5
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xf6
inc dword [eax + 0xc]
jmp 0x4963c5
test al, 0x10
jne 0x4963c5
test cl, 0x40
jne 0x4963b0
test byte [ebp + 0x1c], 0x10
jne 0x4963b0
cmp byte [esi + 0x26], 0
mov eax, 0x35
je 0x49634a
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x30]
mov eax, 0x36
mov dword [esi + 0x3c], edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
push edi
push ecx
push edx
mov eax, ebx
call fcn.004728ba
add esp, 0x10
cmp byte [esi + 0x26], 0
jne 0x4963c5
cmp word [ebx + 0x26], 0x40
jge 0x4963c5
test byte [ebx + 0x2c], 0x20
jne 0x4963c5
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov edi, eax
xor edx, edx
or edi, ecx
je 0x496397
lea ecx, [ecx]
shrd eax, ecx, 1
shr ecx, 1
mov edi, eax
inc edx
or edi, ecx
jne 0x49638a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x20]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.00454afa
add esp, 8
jmp 0x4963c5
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x20]
push eax
mov eax, dword [ebp + 8]
push 0
push ecx
push edi
call fcn.0044cf4a
add esp, 0x10
mov eax, dword [esp + 0x44]
test dword [eax + 0x24], 0x200
je 0x4964e5
mov edx, dword [esp + 0x38]
test byte [edx + 0x2c], 0x20
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], 0x35
je 0x496411
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x496411
cmp word [esp + 0x40], 0
je 0x496411
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx - 0x34]
mov dword [esp + 0x28], 0
jmp 0x49646e
cmp byte [esi + 0x26], 0
mov edi, dword [ebp + 0x20]
je 0x496443
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x496436
mov edi, edi
cmp eax, ecx
je 0x496436
mov eax, dword [eax + 0x14]
inc edi
test eax, eax
jne 0x49642a
mov dword [esp + 0x28], 0x36
mov dword [esi + 0x40], edi
jmp 0x49646e
test edi, edi
je 0x496462
cmp word [esp + 0x40], 0
je 0x496462
test dword [ebp + 0x1c], 0x1000
je 0x49646e
mov dword [esp + 0x28], 0x34
jmp 0x49646e
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x44]
lea ecx, [edi + 1]
mov dword [eax + 0x44], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x24]
mov dword [edx - 0x30], edi
je 0x4964e5
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x38], ecx
cmp dword [edx + 0x54], ebx
jg 0x4964a7
push eax
call fcn.0044aaba
add esp, 4
test eax, eax
jne 0x4964d9
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
inc dword [eax + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov cl, byte [esp + 0x28]
mov edx, dword [esp + 0x38]
mov byte [eax], cl
mov ecx, dword [esp + 0x2c]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 8]
call fcn.0047132a
mov edx, dword [esp + 0x2c]
test edx, edx
js 0x496534
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x198]
test eax, eax
jne 0x4964fc
mov eax, ecx
mov edi, dword [eax + 0x14c]
mov ecx, dword [esp + 0x30]
test edi, ecx
jne 0x496534
or ecx, edi
mov dword [eax + 0x14c], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov edi, edx
add edi, edi
mov ecx, dword [ecx + edi*8 + 0xc]
mov ecx, dword [ecx]
mov dword [eax + edx*4 + 0x150], ecx
cmp edx, 1
jne 0x496534
mov ebx, eax
call fcn.004923da
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
jle 0x496556
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x30]
lea ecx, [esi + 0x48]
lea ecx, [ecx]
cmp dword [ecx], edi
je 0x496556
inc eax
add ecx, 4
cmp eax, edx
jl 0x49654a
add dword [esp + 0x24], 0x48
dec dword [esp + 0x48]
jne 0x49618c
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
cmp byte [ecx + 0x40], 0
jne 0x49663d
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x1c], ebx
jle 0x496634
lea edi, [esi + 0x304]
mov edx, dword [edi + 0x14]
test dword [edx + 0x24], 0x4000
je 0x4965e1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea eax, [edi - 0x24]
push eax
movzx eax, byte [edi]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
push edx
add eax, eax
lea edx, [ecx + eax*8 + 8]
push edx
lea eax, [esi + 0x148]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0048477a
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [ecx + 0x40], 0
jne 0x49663d
movzx eax, byte [edi]
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
lea ecx, [edi - 0x24]
push edx
call fcn.0048452a
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push eax
mov dword [edi - 4], ecx
push ebx
mov ecx, esi
call fcn.00486eea
mov ecx, dword [edi - 0xc]
inc ebx
add esp, 0x1c
add edi, 0x48
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esi + 0x30], ecx
cmp ebx, dword [esp + 0x1c]
jl 0x49659a
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x38]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x14]
push esi
mov dword [eax + 0x1a8], edx
call fcn.00450f3a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret