Function at 0x495638
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x495640
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x495b10
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x18]
mov edx, 0x495b2c
call fcn.00488d74
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 8]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x1c]
mov edx, 0x495b44
call fcn.00488d74
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0xc]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x24]
mov edx, 0x495b5c
call fcn.00488d74
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x495b74
call fcn.00405ee0
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.0040c144
mov dword [ebx + 0x10], eax
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x2c]
mov edx, 0x495b84
call fcn.00488d74
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x495b74
call fcn.00405ee0
mov eax, dword [ebp - 0x28]
xor edx, edx
call fcn.0040c144
mov byte [ebx + 0x14], al
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x34]
mov edx, 0x495b9c
call fcn.00488d74
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x495b74
call fcn.00405ee0
mov eax, dword [ebp - 0x30]
xor edx, edx
call fcn.0040c144
mov dword [ebx + 0x18], eax
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x3c]
mov edx, 0x495bb8
call fcn.00488d74
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x495b74
call fcn.00405ee0
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.0040c144
mov dword [ebx + 0x1c], eax
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x40]
mov edx, 0x495bd4
call fcn.00488d74
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x20]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x48]
mov edx, 0x495bf0
call fcn.00488d74
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040b78c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x24]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x50]
mov edx, 0x495c08
call fcn.00488d74
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040b78c
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x28]
call fcn.00405a0c
call fcn.0048fb30
movzx eax, ax
cmp eax, dword [ebx + 0x18]
sete byte [ebp - 0x11]
movzx eax, word [ebx + 0x10]
call fcn.0048fc1c
mov byte [ebp - 0x12], al
lea eax, [ebx + 0x2c]
xor edx, edx
call fcn.00405a0c
xor eax, eax
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405a60
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00405a60
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x24]
call fcn.00405a60
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x28]
call fcn.00405a60
jmp 0x49594d
mov edx, dword [ebp - 4]
mov eax, 0x495c20
call fcn.00411e04
mov esi, eax
test esi, esi
jle 0x495888
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004061b8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0xc]
call fcn.0040b78c
lea eax, [ebp - 0x5c]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004061b8
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0040b78c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 4]
call fcn.00405a60
jmp 0x49589d
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405a60
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a60
mov edx, dword [ebp - 8]
mov eax, 0x495c20
call fcn.00411e04
mov esi, eax
test esi, esi
jle 0x4958fb
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004061b8
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x10]
call fcn.0040b78c
lea eax, [ebp - 0x68]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 8]
call fcn.004061b8
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040b78c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 8]
call fcn.00405a60
jmp 0x495916
cmp dword [ebp - 8], 0
je 0x495916
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405a60
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405a60
movzx edx, byte [ebp - 0x12]
mov eax, dword [ebp - 0xc]
call fcn.0048fff4
test al, al
je 0x49594d
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
call fcn.00405a0c
cmp dword [ebp - 0x10], 0
je 0x495947
mov edx, 0xb
mov eax, dword [ebp - 0x10]
call fcn.0040c144
mov dword [ebx + 0x30], eax
mov byte [ebp - 0x11], 1
jmp 0x495957
cmp dword [ebp - 4], 0
jne 0x49582a
cmp dword [ebx + 0x2c], 0
jne 0x4959ab
lea edx, [ebp - 0x6c]
mov eax, dword [0x4cfec8]
mov eax, dword [eax]
mov eax, dword [eax + 0x84]
call fcn.0042c594
mov edx, dword [ebp - 0x6c]
lea eax, [ebx + 0x2c]
call fcn.00405a0c
mov eax, dword [0x4cfec8]
mov eax, dword [eax]
mov eax, dword [eax + 0x84]
call fcn.0042c644
cdq
xor eax, edx
sub eax, edx
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x30]
cmp eax, 0xb
jg 0x4959a4
cmp eax, 9
jge 0x4959ab
mov dword [ebx + 0x30], 0xb
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x74]
mov edx, 0x495c30
call fcn.00488d74
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040b78c
mov eax, dword [ebp - 0x70]
xor edx, edx
call fcn.0040c144
mov dword [ebx + 0x34], eax
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x78]
mov edx, 0x495c44
call fcn.00488d74
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0x38]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x7c]
mov edx, 0x495c5c
call fcn.00488d74
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 0x3c]
call fcn.00405a0c
mov eax, edi
call fcn.004895e8
lea ecx, [ebp - 0x80]
mov edx, 0x495c70
call fcn.00488d74
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x40]
call fcn.00405a0c
push 1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_IsValidLocale
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebx + 0x44], al
mov edx, dword [ebx + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov byte [ebx + 0x45], al
cmp byte [ebx + 0x44], 0
je 0x495ac7
cmp byte [ebp - 0x11], 0
je 0x495ac7
push 0x495c84
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
call fcn.0048abcc
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.0040c940
push dword [ebp - 0x8c]
push 0x495c9c
push 0x495cbc
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00405fc4
mov edx, dword [ebp - 0x88]
xor ecx, ecx
mov eax, ebx
call fcn.0049550c
mov eax, dword [ebp - 0x84]
call fcn.0048ae4c
test al, al
jne 0x495acb
xor eax, eax
jmp 0x495acd
mov al, 1
mov byte [ebx + 0x46], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495b17
lea eax, [ebp - 0x90]
mov edx, 9
call fcn.00405a04
lea eax, [ebp - 0x6c]
call fcn.004059fc
lea eax, [ebp - 0x68]
mov edx, 0x15
call fcn.00405a04
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405a04
ret