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

Disassembly:
push 0xffffffffffffffff
push 0x50210c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1d8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call fcn.00404230
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x1d0], ebp
call fcn.004e81e0
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00408020
push 0x5114b8
push esi
mov byte [esp + 0x1d8], 1
call fcn.004ed2a0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40fd78
mov eax, edi
sub eax, esi
je 0x40fb6b
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004050c0
mov al, byte [edi + 2]
add edi, 2
cmp al, 0x3f
mov esi, edi
je 0x40fb89
test al, al
je 0x40fd96
mov al, byte [esi + 1]
add esi, 1
cmp al, 0x3f
jne 0x40fb77
cmp byte [esi], 0
je 0x40fd96
lea ecx, [esp + 0x3c]
call fcn.00407610
mov eax, esi
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00407e00
push str.8bit
lea ecx, [esp + 0x40]
call fcn.00409680
test al, al
je 0x40fbca
push str.utf_8
lea ecx, [esp + 0x40]
call fcn.004091c0
mov al, byte [esi + 1]
add esi, 1
xor bl, bl
test al, al
je 0x40fd96
cmp al, 0x42
je 0x40fbe2
cmp al, 0x62
jne 0x40fbe4
mov bl, 1
add esi, 1
cmp byte [esi], 0x3f
jne 0x40fd96
add esi, 1
cmp byte [esi], 0
je 0x40fd96
push 0x5114b0
push esi
call fcn.004ed2a0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40fd96
sub eax, esi
je 0x40fd5d
test bl, bl
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebp
push esi
je 0x40fcbb
call fcn.0040e250
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x40fd5d
push str.utf_8
lea ecx, [esp + 0x40]
call fcn.00409680
test al, al
jne 0x40fd45
lea ecx, [esp + 0x3c]
call fcn.004e81e0
push eax
call fcn.0043d6f0
add esp, 4
test al, al
je 0x40fd45
lea ecx, [esp + 0x64]
call fcn.00412380
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push str.utf_8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 2
call fcn.004e81e0
push eax
lea ecx, [esp + 0x78]
call fcn.0041e0b0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1d0], 1
call fcn.004123b0
jmp 0x40fd54
call fcn.0040ed40
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x40fd5d
push str.utf_8
lea ecx, [esp + 0x40]
call fcn.00409680
test al, al
jne 0x40fd45
lea ecx, [esp + 0x3c]
call fcn.004e81e0
push eax
call fcn.0043d6f0
add esp, 4
test al, al
je 0x40fd45
lea ecx, [esp + 0x114]
call fcn.00412380
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push str.utf_8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 3
call fcn.004e81e0
push eax
lea ecx, [esp + 0x128]
call fcn.0041e0b0
lea ecx, [esp + 0x114]
mov byte [esp + 0x1d0], 1
call fcn.004123b0
jmp 0x40fd54
mov edx, dword [esp + 0x14]
push edx
push esi
lea ecx, [esp + 0x24]
call fcn.004050c0
push esi
call fcn.004ecd7b
add esp, 4
lea esi, [edi + 2]
push 0x5114b8
push esi
call fcn.004ed2a0
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x40fb5a
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fd80
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004050c0
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00407610
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00409a90
push 2
mov ecx, esi
call fcn.00407a70
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d0], 0
call fcn.00408310
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00404a00
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.004ec47e
add esp, 0x1c0
ret 8