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

Disassembly:
push 0xffffffffffffffff
push 0x48a498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
push edi
push 0x4afc2c
push eax
call fcn.0045879b
mov ebx, eax
xor esi, esi
add esp, 8
cmp ebx, esi
mov dword [esp + 0x44], ebx
jne 0x40518f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
mov edi, dword [esp + 0x84]
mov dword [esp + 0x3c], esi
cmp edi, esi
je 0x4051db
mov ecx, dword [esp + 0x80]
push 0x4afbec
push ecx
call fcn.0045879b
mov ebp, eax
add esp, 8
cmp ebp, esi
mov dword [esp + 0x54], ebp
jne 0x4051df
push ebx
call fcn.0045869f
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
mov ebp, dword [esp + 0x54]
mov eax, dword [0x4bb604]
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x74], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x405221
test edi, edi
je 0x405a51
mov esi, dword [esp + 0x44]
push esi
call fcn.00459525
mov bl, al
mov al, byte [esi + 0xc]
add esp, 4
mov byte [esp + 0x80], bl
test al, 0x10
jne 0x405a58
test bl, bl
je 0x405211
mov ecx, dword [esp + 0x34]
mov eax, 1
cmp ecx, eax
jne 0x40526d
cmp bl, 0xd
je 0x40533f
cmp bl, 0xa
je 0x40533f
mov dword [esp + 0x34], 0
cmp bl, 0x26
je 0x405869
cmp bl, 0x3c
jne 0x40586f
mov ebx, 1
push 0x3c
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebx
call fcn.0046b562
mov dword [esp + 0x48], 0
test byte [esi + 0xc], 0x10
jne 0x4053fd
push esi
call fcn.00459525
mov byte [esp + 0x84], al
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
call fcn.0046eb56
push 0x4afd0c
lea ecx, [esp + 0x14]
call fcn.0046b786
test eax, eax
jne 0x4053ef
cmp edi, 2
mov dword [esp + 0x48], ebx
jne 0x4052f3
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0045871c
add esp, 8
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.0046e4c8
mov byte [esp + 0x74], 4
lea eax, [esp + 0x58]
push 3
push eax
lea ecx, [esp + 0x28]
call fcn.0046b692
mov eax, dword [eax]
push 0x4afd08
push eax
call fcn.00458301
add esp, 8
test eax, eax
je 0x40535a
mov ecx, dword [esi + 0xc]
shr ecx, 4
not cl
and cl, 1
mov byte [esp + 0x7c], cl
je 0x40535a
mov bl, 1
jmp 0x40535c
cmp edi, 2
jne 0x405211
movsx edx, bl
push ebp
push edx
call fcn.004587ae
add esp, 8
jmp 0x405211
xor bl, bl
lea ecx, [esp + 0x58]
call fcn.0046e753
test bl, bl
je 0x4053dc
push esi
call fcn.00459525
add esp, 4
cmp edi, 2
mov byte [esp + 0x80], al
jne 0x40538b
movsx edx, al
push ebp
push edx
call fcn.004587ae
add esp, 8
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x20]
push eax
call fcn.0046eb56
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 8], 0xa
jle 0x405306
lea edx, [esp + 0x5c]
push 3
push edx
lea ecx, [esp + 0x28]
call fcn.0046b692
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 5
call fcn.0046e88c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 4
call fcn.0046e753
jmp 0x405306
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 3
call fcn.0046e753
mov ebx, 1
cmp byte [esp + 0x80], 0x3e
jne 0x40529b
cmp dword [esp + 0x48], ebx
je 0x405211
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.0040b3d0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 6
call fcn.0046e88c
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 3
call fcn.0046e753
lea ecx, [esp + 0x14]
call fcn.0046ec87
mov edx, dword [esp + 0x14]
push str.OPTION
push edx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405494
push str._OPTION
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0040ba40
add esp, 0xc
cmp edi, 2
jne 0x405486
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0045871c
mov edx, dword [esp + 0x54]
push ebp
push edx
call fcn.0045871c
add esp, 0x10
lea ecx, [esp + 0x4c]
call fcn.0046e753
jmp 0x405211
mov eax, dword [esp + 0x14]
push str.SCRIPT
push eax
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x4054e9
push str._SCRIPT
lea ecx, [esp + 0x54]
push esi
push ecx
call fcn.0040ba40
add esp, 0xc
cmp edi, 2
jne 0x4054db
mov edx, dword [esp + 0x10]
push ebp
push edx
call fcn.0045871c
mov eax, dword [esp + 0x58]
push ebp
push eax
call fcn.0045871c
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.0046e753
jmp 0x405211
cmp edi, 2
jne 0x4054fc
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0045871c
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405219
mov edx, dword [esp + 0x14]
push str.title
push edx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405539
push 0x4bfab8
lea ecx, [esp + 0x1c]
call fcn.0046e8dc
mov dword [esp + 0x30], 1
jmp 0x405211
mov eax, dword [esp + 0x14]
push str._title
push eax
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405614
cmp dword [esp + 0x30], 1
jne 0x405607
mov ecx, dword [esp + 0x18]
push 0x4bfab8
push ecx
call fcn.00458301
add esp, 8
test eax, eax
je 0x405607
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push str.title
call fcn.00406a70
mov esi, eax
test esi, esi
jne 0x4055f0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4055b1
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.00406bf0
mov ecx, dword [esp + 0x88]
call fcn.00406c60
mov ecx, dword [esp + 0x38]
mov esi, eax
push str.title
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
call fcn.0046e8dc
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + 4]
mov edx, dword [edx + ecx*4]
mov dword [esi], edx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax + ecx*4], esi
push ebx
lea ecx, [esi + 0xc]
call fcn.0046e8dc
push 0x4bfab8
lea ecx, [esp + 0x1c]
call fcn.0046e8dc
mov dword [esp + 0x30], 0
jmp 0x405211
mov edx, dword [esp + 0x14]
push str.meta
push edx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x4057e5
mov eax, dword [0x4bb604]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
push str.name
lea ecx, [esp + 0x68]
push eax
push ecx
mov byte [esp + 0x80], 8
call fcn.0040b550
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 9
call fcn.0046e88c
lea ecx, [esp + 0x64]
mov byte [esp + 0x74], 8
call fcn.0046e753
mov edx, dword [esp + 0x10]
push str.content
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.0040b550
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0xa
call fcn.0046e88c
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 8
call fcn.0046e753
lea ecx, [esp + 0x28]
call fcn.0046ec87
mov ecx, dword [esp + 0x28]
push 0x4bfab8
push ecx
call fcn.00458301
add esp, 8
test eax, eax
je 0x4057c4
mov edx, dword [esp + 0x2c]
push 0x4bfab8
push edx
call fcn.00458301
add esp, 8
test eax, eax
je 0x4057c4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x80], eax
mov ebx, eax
call fcn.0046bc2c
mov ecx, dword [esp + 0x88]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ecx + 4]
test eax, eax
mov ebp, edx
je 0x40573c
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x40573c
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.00458301
add esp, 8
test eax, eax
je 0x405738
mov esi, dword [esi]
test esi, esi
jne 0x40571f
jmp 0x40573c
test esi, esi
jne 0x4057b3
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x405785
mov edx, ecx
mov esi, dword [edx + 8]
lea ebx, [esi*4]
push ebx
call fcn.0047330d
mov edx, dword [esp + 0x8c]
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 edi, dword [esp + 0x84]
mov dword [edx + 8], esi
mov ebx, dword [esp + 0x88]
mov ecx, ebx
call fcn.00406c60
mov esi, eax
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esi + 8]
mov dword [esi + 4], ebp
call fcn.0046e8dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp*4]
mov dword [esi], edx
mov eax, dword [ebx + 4]
mov dword [eax + ebp*4], esi
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esi + 0xc]
call fcn.0046e8dc
mov ebp, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 7
call fcn.0046e753
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0046e753
jmp 0x405211
mov edx, dword [esp + 0x14]
push str._head
push edx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405804
mov dword [esp + 0x24], eax
jmp 0x405211
mov eax, dword [esp + 0x14]
push 0x4afcb8
push eax
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405823
mov dword [esp + 0x24], eax
jmp 0x405211
mov ecx, dword [esp + 0x14]
push str.html
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405211
cmp edi, 2
jne 0x405211
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x405211
push eax
push str._base_href__s__
push ebp
call fcn.00459452
add esp, 0xc
jmp 0x405211
cmp dword [esp + 0x30], eax
jne 0x4058e3
cmp dword [esp + 0x24], eax
jne 0x4058a2
cmp edi, 2
jne 0x40588c
movsx edx, bl
push ebp
push edx
call fcn.004587ae
add esp, 8
jmp 0x405211
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push eax
call fcn.0046eb56
jmp 0x405211
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push edi
push ebp
push ecx
call fcn.00405060
add esp, 0x24
jmp 0x405211
push 0x4bfab8
lea ecx, [esp + 0x20]
call fcn.0046e8dc
test byte [esi + 0xc], 0x10
jne 0x405985
push esi
call fcn.00459525
mov bl, al
add esp, 4
cmp bl, 0x3b
mov byte [esp + 0x80], bl
je 0x405985
cmp bl, 0x3c
je 0x405978
cmp bl, 0x26
je 0x405978
cmp bl, 0x7f
jg 0x405978
test bl, bl
jl 0x405978
movsx esi, bl
push esi
call fcn.00458565
add esp, 4
test eax, eax
jne 0x405978
cmp bl, 0x23
je 0x405954
push esi
call fcn.0045850f
add esp, 4
test eax, eax
jne 0x405954
push esi
call fcn.0045853d
add esp, 4
test eax, eax
je 0x405971
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push edx
call fcn.0046eb56
mov esi, dword [esp + 0x44]
test byte [esi + 0xc], 0x10
je 0x4058fb
jmp 0x405985
movsx eax, bl
push ebp
push eax
jmp 0x40597d
movsx ecx, bl
push ebp
push ecx
call fcn.0045948e
add esp, 8
cmp dword [esp + 0x24], 1
jne 0x4059a2
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push edx
call fcn.0046eb56
jmp 0x405211
cmp bl, 0x3b
jne 0x4059f9
mov eax, dword [esp + 0x1c]
push eax
call fcn.00404e00
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x9c]
push ecx
push edx
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x94]
push edx
push eax
push edi
push ebp
push ecx
call fcn.00405060
add esp, 0x28
jmp 0x405211
mov eax, dword [esp + 0x1c]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x405211
mov ebx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x3c]
mov al, byte [esi + eax]
push edx
push ebx
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
mov edx, dword [esp + 0xa0]
push ecx
push edx
push edi
push ebp
push eax
call fcn.00405060
mov eax, dword [esp + 0x40]
add esp, 0x24
inc esi
cmp esi, dword [eax - 8]
jl 0x405a11
jmp 0x405211
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x405a66
test edi, edi
je 0x405a65
push ebp
call fcn.0045869f
add esp, 4
push esi
call fcn.0045869f
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0046e753
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
call fcn.0046e753
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0
call fcn.0046e753
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046e753
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret