Function at 0x409870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470cda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0044e5b0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], ebx
call fcn.0044e5b0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
or ebp, 0xffffffff
mov edi, 0x4930f8
mov ecx, ebp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov dword [esp + 0x30], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x178], 1
push ecx
push 0x4930f8
mov ecx, edx
call fcn.00413680
push ebx
lea ecx, [esp + 0x38]
call fcn.004565a0
mov byte [esp + 0x168], 2
call fcn.0045d440
test al, al
je 0x409934
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 3
mov ecx, esp
mov dword [esp + 0x50], esp
push 6
push 0x486a0c
jmp 0x409c6e
push 0xffff
lea ecx, [esp + 0x64]
push 0x48699c
push ecx
call fcn.00467c1a
mov al, byte [esp + 0x1f]
push ecx
mov edx, esp
lea edi, [esp + 0x70]
mov ecx, ebp
mov dword [esp + 0x50], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, edx
call fcn.00413680
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push 0x486928
mov byte [esp + 0x190], 4
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x6e]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
push 0x486a1c
mov byte [esp + 0x1a0], 5
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x7f]
mov ecx, esp
mov dword [esp + 0x9c], esp
push edx
push 0x4930f8
mov byte [esp + 0x1b0], 6
call fcn.00412fa0
sub esp, 0x10
mov byte [esp + 0x1b8], 7
mov esi, esp
mov dword [esp + 0x88], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x486aa0
call fcn.0044e650
push esi
call fcn.0045ad10
sub esp, 8
mov byte [esp + 0x1c8], 8
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x486a98
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea eax, [esp + 0xa4]
mov byte [esp + 0x1c8], 2
push eax
mov ecx, 0x4937b8
call fcn.004572d0
mov edx, dword [0x47814c]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x28], cx
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x174], 9
call fcn.00413260
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x168], 2
cmp eax, ebx
je 0x409aa4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409a9b
cmp al, 0xff
je 0x409a9b
dec al
mov byte [ecx], al
jmp 0x409aa4
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00452fc0
cmp ax, 2
je 0x409c85
lea eax, [esp + 0x44]
lea ecx, [esp + 0x24]
push eax
call fcn.004566e0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x409ad1
mov eax, 0x478288
mov edi, eax
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x48]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x409b18
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409b0f
cmp al, 0xff
je 0x409b0f
dec al
mov byte [ecx], al
jmp 0x409b18
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], ebx
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00467d6e
add esp, 4
mov dword [esp + 0x20], eax
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xa
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x486a90
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x178], 2
call fcn.004570c0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov edx, eax
mov byte [0x484165], al
movsx ax, byte [0x484160]
sar edx, 8
push eax
push 0x484161
mov byte [0x484164], dl
call fcn.0044ea30
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0044e5c0
call fcn.004291b0
add esp, 8
cmp ax, bx
jg 0x409c33
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xb
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x486a88
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x178], 2
call fcn.004570c0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x409cd2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409cc9
cmp al, 0xff
je 0x409cc9
dec al
mov byte [ecx], al
jmp 0x409cd2
push 2
lea ecx, [esp + 0x20]
call fcn.0044e8c0
push ebx
push 1
push ecx
cmp al, 9
mov ecx, esp
je 0x409ca1
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xc
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x486a88
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x178], 2
call fcn.004570c0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x409cd2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409cc9
cmp al, 0xff
je 0x409cc9
dec al
mov byte [ecx], al
jmp 0x409cd2
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xd
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x486a80
jmp 0x409c6e
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x168], bl
call fcn.0044e6f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebp
call fcn.0044e6f0
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret