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

Disassembly:
push 0xffffffffffffffff
push 0x47f110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
push edi
push 0x49cc84
push eax
call fcn.0044d7eb
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [esp + 0x34], eax
jne 0x4051ad
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, dword [0x4a624c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x94]
mov byte [esp + 0x84], 3
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x405200
test edi, edi
je 0x405c9d
mov ebp, dword [esp + 0x34]
push ebp
call fcn.0044e575
mov bl, al
mov al, byte [ebp + 0xc]
add esp, 4
mov byte [esp + 0x18], bl
test al, 0x10
jne 0x405ca4
test bl, bl
je 0x4051f0
cmp bl, 0x26
je 0x40594a
cmp bl, 0x3c
jne 0x405955
push 0x3c
lea ecx, [esp + 0x18]
call fcn.0045fdc6
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], 0
test byte [ebp + 0xc], 0x10
jne 0x405394
push ebp
call fcn.0044e575
mov byte [esp + 0x1c], al
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004633ba
push 0x49cdd4
lea ecx, [esp + 0x18]
call fcn.0045ffea
test eax, eax
jne 0x405389
cmp edi, 2
mov dword [esp + 0x2c], 1
jne 0x4052a4
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0044d76c
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call fcn.00462d2c
mov byte [esp + 0x84], 4
lea ecx, [esp + 0x54]
push 3
push ecx
lea ecx, [esp + 0x2c]
call fcn.0045fef6
mov eax, dword [eax]
push 0x49cdd0
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4052f6
mov edx, dword [ebp + 0xc]
shr edx, 4
not dl
and dl, 1
mov byte [esp + 0x8c], dl
je 0x4052f6
mov bl, 1
jmp 0x4052f8
xor bl, bl
lea ecx, [esp + 0x54]
call fcn.00462fb7
test bl, bl
je 0x405378
push ebp
call fcn.0044e575
add esp, 4
cmp edi, 2
mov byte [esp + 0x18], al
jne 0x405324
movsx eax, al
push esi
push eax
call fcn.0044d7fe
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.004633ba
mov edx, dword [esp + 0x24]
cmp dword [edx - 8], 0xa
jle 0x4052ba
lea eax, [esp + 0x58]
push 3
push eax
lea ecx, [esp + 0x2c]
call fcn.0045fef6
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 5
call fcn.004630f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 4
call fcn.00462fb7
jmp 0x4052ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 3
call fcn.00462fb7
cmp byte [esp + 0x18], 0x3e
jne 0x40524e
cmp dword [esp + 0x2c], 1
je 0x4051f0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0040c3e0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 6
call fcn.004630f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 3
call fcn.00462fb7
lea ecx, [esp + 0x10]
call fcn.004634eb
mov eax, dword [esp + 0x10]
push str._doctype
push eax
call fcn.00459170
add esp, 8
test eax, eax
je 0x405467
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x405467
cmp edi, 2
jne 0x40545f
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x40545f
mov eax, dword [0x4aaa6c]
push 0x4aa680
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x405437
mov ecx, dword [0x4aaa6c]
push ecx
push str._meta_http_equiv_Content_Type__content_text_html_charset_s___r_n
push esi
call fcn.0044e4a2
add esp, 0xc
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0041fa60
mov eax, dword [eax]
add esp, 8
push eax
push str._base_href__s___r_n
push esi
call fcn.0044e4a2
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.00462fb7
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x10]
push str.OPTION
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4054bc
push str._OPTION
lea edx, [esp + 0x48]
push ebp
push edx
call fcn.0040ca50
add esp, 0xc
cmp edi, 2
jne 0x4054ae
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.0044d76c
mov ecx, dword [esp + 0x4c]
push esi
push ecx
call fcn.0044d76c
add esp, 0x10
lea ecx, [esp + 0x44]
call fcn.00462fb7
jmp 0x4051f0
mov edx, dword [esp + 0x10]
push str.SCRIPT
push edx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x405511
push str._SCRIPT
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.0040ca50
add esp, 0xc
cmp edi, 2
jne 0x405503
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.0044d76c
mov edx, dword [esp + 0x50]
push esi
push edx
call fcn.0044d76c
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.00462fb7
jmp 0x4051f0
mov eax, dword [esp + 0x10]
push str.frameset
push eax
call fcn.00459170
add esp, 8
test eax, eax
jne 0x405566
push str._frameset
lea ecx, [esp + 0x50]
push ebp
push ecx
call fcn.0040ca50
add esp, 0xc
cmp edi, 2
jne 0x405558
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0044d76c
mov eax, dword [esp + 0x54]
push esi
push eax
call fcn.0044d76c
add esp, 0x10
lea ecx, [esp + 0x4c]
call fcn.00462fb7
jmp 0x4051f0
cmp edi, 2
jne 0x405579
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.0044d76c
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4051f0
mov edx, dword [esp + 0x10]
push str.title
push edx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4055b6
push 0x4aa680
lea ecx, [esp + 0x24]
call fcn.00463140
mov dword [esp + 0x30], 1
jmp 0x4051f0
mov eax, dword [esp + 0x10]
push str._title
push eax
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4056b0
cmp dword [esp + 0x30], 1
jne 0x4056a3
mov ecx, dword [esp + 0x20]
push 0x4aa680
push ecx
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4056a3
mov ebp, dword [esp + 0x20]
push str.title
call fcn.00460490
mov ecx, dword [esp + 0x98]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ecx + 4]
test eax, eax
mov ebx, edx
je 0x405640
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x405640
mov eax, dword [esi + 8]
push str.title
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x40563c
mov esi, dword [esi]
test esi, esi
jne 0x40561f
jmp 0x405640
test esi, esi
jne 0x40568c
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x405659
mov edx, dword [ecx + 8]
push 1
push edx
call fcn.00437ec0
mov ecx, dword [esp + 0x98]
call fcn.00407260
mov esi, eax
push str.title
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00463140
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
mov dword [esi], edx
mov eax, dword [eax + 4]
mov dword [eax + ebx*4], esi
push ebp
lea ecx, [esi + 0xc]
call fcn.00463140
push 0x4aa680
lea ecx, [esp + 0x24]
call fcn.00463140
mov dword [esp + 0x30], 0
jmp 0x4051f0
mov ecx, dword [esp + 0x10]
push str.meta
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4058f5
mov eax, dword [0x4a624c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x14]
push str.name
lea eax, [esp + 0x68]
push edx
push eax
mov byte [esp + 0x90], 8
call fcn.0040c560
add esp, 0xc
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 9
call fcn.004630f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x84], 8
call fcn.00462fb7
mov ecx, dword [esp + 0x14]
push str.content
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0040c560
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 0xa
call fcn.004630f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 8
call fcn.00462fb7
lea ecx, [esp + 0x8c]
call fcn.004634eb
mov eax, dword [esp + 0x8c]
push 0x4aa680
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4058cb
mov ecx, dword [esp + 0x2c]
push 0x4aa680
push ecx
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4058cb
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
mov ebx, eax
call fcn.00460490
mov ecx, dword [esp + 0x98]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ecx + 4]
test eax, eax
mov ebp, edx
je 0x4057f4
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x4057f4
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4057ec
mov esi, dword [esi]
test esi, esi
jne 0x4057d3
jmp 0x4057f4
test esi, esi
jne 0x4058be
mov esi, dword [esp + 0x98]
mov eax, dword [esi + 4]
test eax, eax
jne 0x405838
mov eax, esi
mov esi, dword [eax + 8]
lea ebx, [esi*4]
push ebx
call fcn.0046359b
mov edx, dword [esp + 0x9c]
mov ecx, ebx
mov edi, eax
xor eax, eax
shr ecx, 2
mov dword [edx + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [edx + 8], esi
mov esi, edx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40586e
mov ecx, dword [esi + 0x18]
push 0x10
lea edx, [esi + 0x14]
push ecx
push edx
call fcn.0046233b
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x40586e
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x405860
mov ebx, dword [esp + 0x98]
push 1
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
inc edi
mov eax, dword [esi]
mov dword [ebx + 0xc], edi
lea edi, [esi + 8]
mov dword [ebx + 0x10], eax
push edi
call fcn.0046043e
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.0046043e
mov edx, dword [esp + 0x6c]
mov ecx, edi
push edx
mov dword [esi + 4], ebp
call fcn.00463140
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x94]
mov ecx, dword [eax + ebp*4]
mov dword [esi], ecx
mov edx, dword [ebx + 4]
mov dword [edx + ebp*4], esi
mov eax, dword [esp + 0x70]
lea ecx, [esi + 0xc]
push eax
call fcn.00463140
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 7
call fcn.00462fb7
lea ecx, [esp + 0x8c]
mov byte [esp + 0x84], 3
call fcn.00462fb7
jmp 0x4051f0
mov ecx, dword [esp + 0x10]
push str._head
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x405914
mov dword [esp + 0x28], eax
jmp 0x4051f0
mov edx, dword [esp + 0x10]
push 0x49cd04
push edx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x405933
mov dword [esp + 0x28], eax
jmp 0x4051f0
mov eax, dword [esp + 0x10]
push str.html
push eax
call fcn.00459170
add esp, 8
jmp 0x4051f0
cmp dword [esp + 0x30], 1
jne 0x405a09
cmp esi, 1
jne 0x40597c
cmp edi, 2
jne 0x405abe
mov ecx, dword [esp + 0x90]
movsx edx, bl
push ecx
push edx
call fcn.0044d7fe
add esp, 8
jmp 0x4051f0
mov ecx, dword [esp + 0xb0]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 0x4aa680
call fcn.00463025
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0xb4]
push eax
push ecx
mov ecx, dword [esp + 0xb8]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xac]
push ecx
push edx
push edi
push eax
push ecx
mov ecx, esp
mov dword [esp + 0xa0], esp
push 0x4aa680
mov byte [esp + 0xb8], 0x11
call fcn.00463025
mov ecx, dword [esp + 0x48]
mov byte [esp + 0xb4], 3
push ecx
call fcn.00404f70
add esp, 0x34
jmp 0x4051f0
push 0x4aa680
lea ecx, [esp + 0x20]
call fcn.00463140
test byte [ebp + 0xc], 0x10
jne 0x405ab7
mov edx, dword [esp + 0x34]
push edx
call fcn.0044e575
mov bl, al
add esp, 4
cmp bl, 0x3b
mov byte [esp + 0x18], bl
je 0x405ab7
cmp bl, 0x3c
je 0x405aa3
cmp bl, 0x26
je 0x405aa3
cmp bl, 0x7f
jg 0x405aa3
test bl, bl
jl 0x405aa3
movsx esi, bl
push esi
call fcn.0044d5b5
add esp, 4
test eax, eax
jne 0x405aa3
cmp bl, 0x23
je 0x405a7b
push esi
call fcn.0044d55f
add esp, 4
test eax, eax
jne 0x405a7b
push esi
call fcn.0044d58d
add esp, 4
test eax, eax
je 0x405a95
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.004633ba
mov ecx, dword [esp + 0x34]
test byte [ecx + 0xc], 0x10
je 0x405a21
jmp 0x405ab7
mov edx, dword [esp + 0x90]
movsx eax, bl
push edx
push eax
jmp 0x405aaf
mov ecx, dword [esp + 0x90]
movsx edx, bl
push ecx
push edx
call fcn.0044e4de
add esp, 8
cmp dword [esp + 0x28], 1
jne 0x405ad1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.004633ba
jmp 0x4051f0
cmp bl, 0x3b
jne 0x405beb
mov ecx, dword [esp + 0x1c]
push 1
push ecx
call fcn.00404d10
add esp, 4
lea ecx, [esp + 0x54]
push eax
call fcn.0045fd60
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x78]
push edx
push 0x49ccf8
mov byte [esp + 0x8c], 0xb
call fcn.00463025
lea ecx, [esp + 0x20]
lea edx, [esp + 0x78]
push ecx
push eax
push edx
mov byte [esp + 0x94], 0xc
call fcn.004631e6
push ecx
mov byte [esp + 0x8c], 0xd
mov ecx, esp
mov dword [esp + 0x94], esp
push 0x49ccf4
push eax
push ecx
call fcn.0046324c
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0xb4]
push eax
push ecx
mov ecx, dword [esp + 0xb8]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xac]
push ecx
push edx
push edi
push eax
push ecx
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
mov byte [esp + 0xb8], 0xe
call fcn.00462d2c
push 0x20
mov byte [esp + 0xb8], 0xd
call fcn.00404f70
add esp, 0x34
lea ecx, [esp + 0x74]
mov byte [esp + 0x84], 0xc
call fcn.00462fb7
lea ecx, [esp + 0x78]
mov byte [esp + 0x84], 0xb
call fcn.00462fb7
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], 3
call fcn.00462fb7
jmp 0x4051f0
mov eax, dword [esp + 0x1c]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4051f0
mov ebp, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 0x4aa680
call fcn.00463025
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x40]
push ebx
push ecx
push edx
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x50]
push eax
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xac]
push edx
push eax
push edi
push ecx
push ecx
mov byte [esp + 0xb4], 0xf
mov ecx, esp
mov dword [esp + 0xa0], esp
push 0x4aa680
call fcn.00463025
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xb8], 3
call fcn.00405d10
push eax
call fcn.00404f70
mov edx, dword [esp + 0x50]
add esp, 0x34
inc esi
cmp esi, dword [edx - 8]
jl 0x405c0a
jmp 0x4051f0
mov eax, dword [esp + 0x34]
push eax
jmp 0x405ca5
push ebp
call fcn.0044d6ef
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 2
call fcn.00462fb7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 1
call fcn.00462fb7
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0
call fcn.00462fb7
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], 0xffffffff
call fcn.00462fb7
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret