Function at 0x40a500
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x470e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
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 + 0x178], 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 + 0x188], 1
push ecx
push 0x4930f8
mov ecx, edx
call fcn.00413680
push ebx
lea ecx, [esp + 0x3c]
call fcn.004565a0
mov byte [esp + 0x178], 2
call fcn.0045d440
test al, al
je 0x40a5c4
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 + 0x188], 3
mov ecx, esp
mov dword [esp + 0x50], esp
push 6
push 0x486a0c
jmp 0x40aa2d
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, str.zzzzzzzzzzzzzzzzz
xor eax, eax
mov dword [esp + 0x50], esp
mov byte [edx], cl
mov ecx, ebp
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
push str.zzzzzzzzzzzzzzzzz
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 + 0x1a0], 4
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x6e]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
push 0x486b08
mov byte [esp + 0x1b0], 5
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x7f]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
push 0x4930f8
mov byte [esp + 0x1c0], 6
call fcn.00412fa0
sub esp, 0x10
mov byte [esp + 0x1c8], 7
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x486b00
call fcn.0044e650
push esi
call fcn.0045ad10
sub esp, 8
mov byte [esp + 0x1d8], 8
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x486af8
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea eax, [esp + 0xb8]
mov ecx, 0x4937b8
mov byte [esp + 0x1d8], 2
push eax
call fcn.004572d0
mov cx, word [eax]
mov byte [esp + 0x178], 9
mov word [esp + 0x28], cx
mov edx, dword [0x47814c]
add eax, 4
push edx
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00413260
mov eax, dword [esp + 0x60]
mov byte [esp + 0x178], 2
cmp eax, ebx
je 0x40a720
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40a717
cmp al, 0xff
je 0x40a717
dec al
mov byte [ecx], al
jmp 0x40a720
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00452fc0
cmp ax, 2
je 0x40aa44
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28]
push eax
call fcn.004566e0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x40a759
mov edi, 0x478288
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
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 0x40a79e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40a795
cmp al, 0xff
je 0x40a795
dec al
mov byte [ecx], al
jmp 0x40a79e
push ecx
call fcn.00467320
add esp, 4
lea edi, [esp + 0x70]
mov ecx, ebp
xor eax, eax
mov dword [esp + 0x48], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x4c], ebx
cmp ecx, 0x11
mov dword [esp + 0x50], ebx
push ebx
je 0x40a804
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x188], 0xa
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486af0
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x188], 2
call fcn.004570c0
jmp 0x40a5c4
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x188], 0xb
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486ae8
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x188], 2
call fcn.004570c0
movsx cx, byte [0x4841b0]
push ecx
push 0x4841b1
lea ecx, [esp + 0x1c]
mov byte [0x4841b6], 0x26
mov byte [0x4841b7], bl
call fcn.0044ea30
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0044e5c0
call fcn.004291b0
add esp, 8
cmp ax, bx
push ebx
jg 0x40a92c
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x188], 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486ae0
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x188], 2
call fcn.004570c0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40a8f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40a8ef
cmp al, 0xff
je 0x40a8ef
dec al
mov byte [ecx], al
jmp 0x40a8f8
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x178], bl
call fcn.0044e6f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebp
call fcn.0044e6f0
xor ax, ax
jmp 0x40aa99
lea ecx, [esp + 0x20]
call fcn.0044e8c0
cmp al, 4
ja 0x40a96a
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x188], 0xd
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486a0c
jmp 0x40aa2d
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x40a976
mov eax, dword [esp + 0x20]
mov dl, byte [esp + eax + 0x70]
mov cl, al
movsx ax, byte [0x4841b0]
add cl, 0x26
push eax
mov byte [0x4841b6], cl
push 0x4841b1
lea ecx, [esp + 0x1c]
mov byte [0x4841b7], 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
jle 0x40aa01
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x11
mov dword [esp + 0x20], eax
jl 0x40a972
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 + 0x188], 0xf
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486ab0
jmp 0x40aa2d
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 + 0x188], 0xe
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x486ae0
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x188], 2
call fcn.004570c0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40aa69
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40aa60
cmp al, 0xff
je 0x40aa60
dec al
mov byte [ecx], al
jmp 0x40aa69
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x178], bl
call fcn.0044e6f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebp
call fcn.0044e6f0
mov ax, 1
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x16c
ret