Function at 0x470970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c88b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x554f58]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x5ae1e8
mov dword [esp + 0x24], eax
call fcn.004467d0
movzx ecx, al
mov dword [esp + 0xc], ecx
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [ebx + 0x188], esi
call fcn.0041f040
xor eax, eax
mov word [esp + 0x30], si
mov ecx, 0x7f
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x230], si
mov ecx, 0x7f
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [esp + 0x43c], esi
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x470a00
sub eax, ecx
test eax, eax
mov dword [esp + 0x28], eax
lea esi, [esp + 0x30]
mov dword [esp + 0x20], 0
jle 0x470a73
lea ecx, [ecx]
mov dl, byte [edi]
xor eax, eax
mov al, dl
mov byte [esi], dl
inc edi
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x470a46
mov cl, byte [edi]
mov eax, dword [esp + 0x20]
inc esi
inc edi
mov byte [esi], cl
inc esi
inc eax
mov dword [esp + 0x20], eax
jmp 0x470a62
cmp byte [esi], 0xa
jne 0x470a61
mov byte [esi], 0
mov dword [ebx + 0x188], 1
lea esi, [esp + 0x230]
jmp 0x470a62
inc esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x470a20
mov edx, dword [esp + 0x24]
push 0x258
push edx
push 0x10
lea ecx, [esp + 0x20]
call fcn.0041f070
test eax, eax
jne 0x470aa4
push 0x530474
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x245
push eax
jmp 0x470c28
push 0x10
lea esi, [ebx + 0x18c]
push 0x258
mov ecx, esi
call fcn.0046f6e0
test al, al
je 0x470c38
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
push 0
push edi
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.0046fbb0
test al, al
jne 0x470af9
push 0x530474
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x24f
push eax
jmp 0x470c28
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x470b6c
push 0x10
lea esi, [ebx + 0x1c0]
push 0x258
mov ecx, esi
call fcn.0046f6e0
test al, al
jne 0x470b34
push 0x530474
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x258
push ecx
jmp 0x470c28
mov edx, dword [esp + 0x14]
push 0
push 0
push edi
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x244]
push eax
mov ecx, esi
call fcn.0046fbb0
test al, al
jne 0x470b6c
push 0x530474
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x25d
push ecx
jmp 0x470c28
mov edx, dword [esp + 0x24]
push 0x258
push edx
push 0x10
lea ecx, [esp + 0x20]
call fcn.0041f070
test eax, eax
jne 0x470b9d
push 0x530474
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x266
push eax
jmp 0x470c28
push 0x10
lea esi, [ebx + 0x1f4]
push 0x12c
mov ecx, esi
call fcn.0046f6e0
test al, al
jne 0x470bcb
push 0x530474
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x26b
push ecx
jmp 0x470c28
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
push 0
push 0
push edi
push edx
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0046fbb0
test al, al
jne 0x470bfc
push 0x530474
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x270
push ecx
jmp 0x470c28
push 0x10
add ebx, 0x228
push 0x12c
mov ecx, ebx
call fcn.0046f6e0
test al, al
jne 0x470c65
push 0x530474
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0x278
push edx
mov dword [esp + 0x18], 0x53ad3c
call fcn.0041ce50
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0041f050
xor al, al
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edi
push eax
or esi, 0xffffffff
push esi
push ecx
mov ecx, ebx
call fcn.0046fbb0
test al, al
jne 0x470ccf
push 0x530474
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x34], 0x53ad3c
mov dword [esp + 0x38], 0x27d
call fcn.0041ce50
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], esi
call fcn.0041f050
xor al, al
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], esi
call fcn.0041f050
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc