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

Disassembly:
push 0xffffffffffffffff
push 0x4a1cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
xor ebx, ebx
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea eax, [esp + 0x10]
push eax
mov edx, 0x1001
mov ecx, str.WTF_Config.wtf
mov dword [esp + 0x17c], ebx
call fcn.00443fb0
test al, al
je 0x40495a
mov ecx, dword [esp + 0x10]
call fcn.00443d40
add eax, 8
cmp dword [eax + 4], ebx
mov dword [esp + 0x14], 0x100000
mov dword [esp + 0x18], ebx
jl 0x4048c1
jg 0x4048bd
cmp dword [eax], 0x100000
jbe 0x4048c1
lea eax, [esp + 0x14]
mov edi, dword [eax]
cmp edi, ebx
jle 0x4048d5
lea edx, [edi + 1]
lea ecx, [esp + 0x14]
call fcn.0044de10
jmp 0x4048dd
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov esi, dword [eax]
cmp esi, ebx
je 0x404951
mov ecx, dword [esp + 0x10]
push edi
mov edx, esi
call fcn.00448ba0
test al, al
je 0x40494a
push bind
mov edx, str.SET_locale__
mov ecx, esi
mov byte [esi + edi], bl
call fcn.0044a540
cmp eax, ebx
je 0x40494a
mov ecx, eax
sub ecx, esi
add ecx, 0x11
cmp ecx, edi
jg 0x40494a
push 4
add eax, 0xc
push eax
lea ecx, [esp + 0x40]
call fcn.004021d0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x184], 1
call fcn.00401840
lea ecx, [esp + 0x38]
mov byte [esp + 0x178], bl
call fcn.00427a00
mov ecx, esi
call fcn.00449760
mov ecx, dword [esp + 0x10]
call fcn.00443bc0
mov edx, dword [esp + 0x34]
cmp edx, 0x10
mov eax, dword [esp + 0x20]
mov ecx, eax
jae 0x40496f
lea ecx, [esp + 0x20]
mov eax, ecx
push ecx
push eax
push str.Data__s_locale__s.MPQ
lea edx, [esp + 0x78]
push 0x104
push edx
call fcn.0044e200
add esp, 0x14
cmp dword [esp + 0x30], ebx
je 0x40499f
lea ecx, [esp + 0x6c]
call fcn.00443c40
test eax, eax
jne 0x404a59
mov eax, 0x4a857c
mov dword [esp + 0x38], 0x4a85b4
mov dword [esp + 0x3c], 0x4a8594
mov dword [esp + 0x40], 0x4a858c
mov dword [esp + 0x44], 0x4a859c
mov dword [esp + 0x48], 0x4a8584
mov dword [esp + 0x4c], 0x4a85a4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x4a8574
mov dword [esp + 0x58], 0x4a856c
mov dword [esp + 0x5c], 0x4a8564
mov dword [esp + 0x60], 0x4a855c
mov dword [esp + 0x64], 0x4a85ac
mov dword [esp + 0x68], eax
xor esi, esi
mov eax, dword [esp + esi*4 + 0x38]
push eax
push eax
push str.Data__s_locale__s.MPQ
lea eax, [esp + 0x78]
push 0x104
push eax
call fcn.0044e200
add esp, 0x14
lea ecx, [esp + 0x6c]
call fcn.00443c40
test eax, eax
jne 0x404a3a
add esi, 1
cmp esi, 0xd
jb 0x404a06
jmp 0x404a59
mov esi, dword [esp + esi*4 + 0x38]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404a43
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00401920
mov esi, dword [esp + 0x34]
cmp esi, 0x10
mov edi, dword [esp + 0x20]
mov edx, edi
jae 0x404a6c
lea edx, [esp + 0x20]
xor ecx, ecx
mov edi, edi
mov al, byte [edx]
cmp al, bl
je 0x404a89
movsx eax, al
shl ebp, 8
add ecx, 1
or ebp, eax
add edx, 1
cmp ecx, 4
jl 0x404a70
cmp esi, 0x10
jb 0x404a97
push edi
call fcn.00409f10
add esp, 4
mov ecx, dword [esp + 0x170]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret