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

Disassembly:
push 0xffffffffffffffff
push 0x4c7a60
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x510a50]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
add dword [esi + 0x4c], 2
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x48]
jne 0x4afc8d
mov edx, dword [str.Character_set_declaration_starting_with___terminated_prematurely___either_no___was_found_or_the_set_had_no_content.]
xor ebx, ebx
mov ebp, 0xf
mov eax, edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4afc25
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.00404e60
mov edi, dword [esi + 0x4c]
sub edi, dword [esi + 0x44]
lea eax, [esp + 0x64]
sar edi, 1
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], ebp
mov dword [ecx + 0x10], ebx
push eax
mov dword [esp + 0xb8], ebx
mov byte [ecx], 0
call fcn.00404b00
push edi
push 7
mov ecx, esi
call fcn.004a42e0
cmp dword [esp + 0x78], 0x10
jb 0x4afc86
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00460bb0
add esp, 4
xor al, al
jmp 0x4afd93
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov word [esp + 0x3c], cx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], 1
mov dword [esp + 0x8c], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ebx, dword [esi + 4]
mov ebp, dword [ebx]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
cmp byte [eax + 0x11], 0
mov edi, dword [esi + 0x4c]
movzx ecx, word [edi]
jne 0x4afd05
nop
cmp word [eax + 0xc], cx
jae 0x4afcfb
mov eax, dword [eax + 8]
jmp 0x4afcff
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0x11], 0
je 0x4afcf0
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], edx
cmp edx, eax
je 0x4afd1c
cmp cx, word [edx + 0xc]
jb 0x4afd1c
lea eax, [esp + 0x60]
jmp 0x4afd24
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
jne 0x4afd2f
xor eax, eax
jmp 0x4afd33
movzx eax, byte [eax + 0xe]
movzx eax, al
add eax, 0xfffffffc
cmp eax, 8
ja case.0x4afd3e.5
jmp dword [eax*4 + 0x4afea0]
cmp edi, dword [esp + 0x18]
jne 0x4afe4b
lea eax, [edi + 2]
mov byte [esp + 0x3c], 1
mov dword [esi + 0x4c], eax
mov dword [esp + 0x14], eax
jmp 0x4afd76
cmp edi, dword [esp + 0x14]
jne 0x4afe55
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004adff0
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x48]
jne 0x4afcd8
cmp ecx, dword [esi + 0x48]
lea ecx, [esp + 0x1c]
setne bl
call fcn.004b72b0
mov al, bl
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004840ae
add esp, 0x7c
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004ae160
test al, al
jne 0x4afd76
lea ecx, [esp + 0x1c]
call fcn.004b72b0
mov al, 1
jmp 0x4afd93
lea eax, [edi + 2]
mov dword [esi + 0x4c], eax
movzx edx, word [eax]
push edx
mov ecx, ebx
call fcn.004a3d40
mov ecx, dword [esi + 4]
cmp al, 0x16
jne 0x4afe0f
mov eax, dword [esi + 0x4c]
mov ecx, dword [ecx]
lea edx, [eax + 2]
push edx
push eax
call fcn.004a5230
test eax, eax
je 0x4afe47
or dword [esp + 0x40], eax
add dword [esi + 0x4c], 2
mov byte [esp + 0x48], 0
jmp 0x4afd76
mov edx, dword [esi + 0x4c]
movzx eax, word [edx]
push eax
call fcn.004a3d40
cmp al, 0x17
jne 0x4afe47
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
lea edx, [eax + 2]
push edx
push eax
call fcn.004a5230
test eax, eax
je 0x4afe47
or dword [esp + 0x44], eax
add dword [esi + 0x4c], 2
mov byte [esp + 0x48], 0
jmp 0x4afd76
add dword [esi + 0x4c], 0xfffffffe
lea edx, [esp + 0x1c]
push edx
jmp 0x4afd6f
add dword [esi + 0x4c], 2
cmp byte [esp + 0x3d], 0
push 0
mov ecx, esi
je 0x4afe6b
lea edx, [esp + 0x20]
push edx
jmp 0x4afe70
lea eax, [esp + 0x20]
push eax
call fcn.004a8170
test eax, eax
jne 0x4afdc5
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x44]
sar ecx, 1
push ecx
push 4
mov ecx, esi
call fcn.004a67c0
lea ecx, [esp + 0x1c]
call fcn.004b72b0
xor al, al
jmp 0x4afd93