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

Disassembly:
push 0xffffffffffffffff
push 0x4e783d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x44]
call fcn.004be1a0
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18c], ebx
call fcn.004be1a0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
or ebp, 0xffffffff
mov edi, 0x520010
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 + 0x50], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x19c], 1
push ecx
push 0x520010
mov ecx, edx
call fcn.004142c0
push ebx
lea ecx, [esp + 0x40]
call fcn.004ca360
push 0xff
lea ecx, [esp + 0x88]
push 0x50f930
push ecx
mov byte [esp + 0x198], 2
call fcn.004de8d6
mov al, byte [esp + 0x1f]
push ecx
mov edx, esp
lea edi, [esp + 0x94]
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 + 0x98]
push ecx
mov ecx, edx
call fcn.004142c0
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push 0x50f8e4
mov byte [esp + 0x1b4], 3
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x57]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
push 0x50f9a8
mov byte [esp + 0x1c4], 4
call fcn.00413bf0
mov byte [esp + 0x1bc], 5
sub esp, 0x10
lea edx, [esp + 0x5b]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
push 0x520010
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x1dc], 6
mov esi, esp
mov dword [esp + 0xa0], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x1ec], 7
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea eax, [esp + 0xd0]
mov ecx, 0x5200a8
mov byte [esp + 0x1ec], 2
push eax
call fcn.004cb120
mov edx, dword [0x4f73d0]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x30], cx
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], 8
call fcn.00413e90
mov eax, dword [esp + 0x78]
mov byte [esp + 0x18c], 2
cmp eax, ebx
je 0x40a073
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a06a
cmp al, 0xff
je 0x40a06a
dec al
mov byte [ecx], al
jmp 0x40a073
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004c48d0
cmp ax, 2
jne 0x40a0d0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40a0a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a09e
cmp al, 0xff
je 0x40a09e
dec al
mov byte [ecx], al
jmp 0x40a0a7
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x18c], 0
call fcn.004be2e0
mov dword [esp + 0x18c], ebp
jmp 0x40a8e9
lea eax, [esp + 0x60]
lea ecx, [esp + 0x2c]
push eax
call fcn.004ca4a0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40a0ea
mov eax, 0x4f7480
mov edi, eax
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x84]
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 + 0x64]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40a134
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a12b
cmp al, 0xff
je 0x40a12b
dec al
mov byte [ecx], al
jmp 0x40a134
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x84]
push ecx
call fcn.004dea48
add esp, 4
mov byte [esp + 0x1c], al
mov dword [esp + 0x40], ebp
jmp case.default.0x40a37c
xor ebx, ebx
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x50fadc
call fcn.004be240
push esi
call fcn.004cfca0
mov ecx, dword [0x5200b4]
add esp, 8
call fcn.004d0780
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50fa04
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50fad4
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50facc
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50fac4
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f9d4
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x84]
and ebp, 0xff
push ebp
push 0x50f930
push edx
call fcn.004de8d6
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f5c0
call fcn.004be240
sub esp, 0x10
lea eax, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x98]
push eax
mov byte [esp + 0x1a4], 9
push edx
call fcn.00413bf0
push ecx
mov byte [esp + 0x1a4], 0xa
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50f988
call fcn.004be240
mov ecx, dword [0x5200b4]
mov byte [esp + 0x1a4], 2
call fcn.004d0d40
mov eax, dword [esp + 0x40]
cmp ax, bx
jge 0x40a2d2
mov edi, 0x50fabc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40a2eb
movsx ecx, ax
push ecx
lea edx, [esp + 0x88]
push 0x50f930
push edx
call fcn.004de8d6
add esp, 0xc
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f5c0
call fcn.004be240
sub esp, 0x10
lea eax, [esp + 0x3b]
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x98]
push eax
push edx
mov byte [esp + 0x1a8], 0xb
call fcn.00413bf0
push ecx
mov byte [esp + 0x1a4], 0xc
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50fab4
call fcn.004be240
mov ecx, dword [0x5200b4]
mov byte [esp + 0x1a4], 2
call fcn.004d0d40
mov ecx, dword [0x5200b4]
call fcn.004d0f50
push 0xa
mov esi, eax
call fcn.004bb3e0
add esp, 4
cmp si, 4
je 0x40a89c
movsx eax, si
cmp eax, 3
ja case.default.0x40a37c
jmp dword [eax*4 + 0x40a910]
push 0xff
lea eax, [esp + 0x88]
push 0x50f930
push eax
call fcn.004de8d6
push ecx
mov cl, byte [esp + 0x2b]
mov ebp, esp
lea edi, [esp + 0x94]
xor eax, eax
mov dword [esp + 0x24], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004144a0
test al, al
je 0x40a3f8
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
push 0x50f8e4
mov byte [esp + 0x1b4], 0xd
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x8b]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push 0x50f9a8
mov byte [esp + 0x1c4], 0xe
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x8f]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
push 0x520010
mov byte [esp + 0x1d4], 0xf
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x1dc], 0x10
mov esi, esp
mov dword [esp + 0x98], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x1ec], 0x11
mov esi, esp
mov dword [esp + 0x88], esp
push ecx
mov ecx, esp
mov dword [esp + 0x8c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ec], 2
push ecx
mov ecx, 0x5200a8
call fcn.004cb120
mov dx, word [eax]
mov edi, dword [0x4f73d0]
lea esi, [eax + 4]
mov word [esp + 0x2c], dx
mov byte [esp + 0x18c], 0x12
mov eax, dword [esi + 8]
mov ebp, eax
cmp edi, ebp
jae 0x40a502
mov ebp, edi
lea ecx, [esp + 0x30]
cmp ecx, esi
jne 0x40a576
cmp dword [esp + 0x38], ebp
jae 0x40a515
call fcn.004de3d7
lea ecx, [esp + 0x30]
call fcn.00415170
mov eax, dword [esp + 0x38]
sub eax, ebp
cmp eax, edi
jae 0x40a52a
mov edi, eax
test edi, edi
jbe 0x40a564
mov edx, dword [esp + 0x34]
sub eax, edi
add ebp, edx
push eax
lea ecx, [edi + ebp]
push ecx
push ebp
call fcn.004dea60
mov esi, dword [esp + 0x44]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x30]
push 0
push esi
call fcn.004144a0
test al, al
je 0x40a564
push esi
lea ecx, [esp + 0x34]
call fcn.00414480
push 0
push 0
lea ecx, [esp + 0x38]
call fcn.00414360
jmp 0x40a5ff
test ebp, ebp
jbe 0x40a5c3
cmp ebp, eax
jne 0x40a5c3
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a58a
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x40a5c3
push 1
lea ecx, [esp + 0x34]
call fcn.00414090
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a5a7
mov eax, 0x4f7480
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x38], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x3c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x40a5ff
push 1
push ebp
lea ecx, [esp + 0x38]
call fcn.004144a0
test al, al
je 0x40a5ff
mov esi, dword [esi + 4]
test esi, esi
jne 0x40a5df
mov esi, 0x4f7480
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x78]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x18c], 2
je 0x40a62e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a625
cmp al, 0xff
je 0x40a625
dec al
mov byte [ecx], al
jmp 0x40a62e
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.004c48d0
cmp ax, 1
jne 0x40a14e
lea edx, [esp + 0x60]
lea ecx, [esp + 0x2c]
push edx
call fcn.004ca4a0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x40a66c
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x84]
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 + 0x64]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40a6b5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a6ac
cmp al, 0xff
je 0x40a6ac
dec al
mov byte [ecx], al
jmp 0x40a6b5
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x64], ebx
push ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.004dea48
add esp, 4
mov byte [esp + 0x1c], al
jmp 0x40a14e
inc ebp
cmp ebp, 0xff
jle 0x40a72b
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x19c], 0x13
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f978
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x19c], 2
call fcn.004caf10
jmp case.default.0x40a37c
mov al, byte [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
inc al
mov byte [esp + 0x1c], al
jmp case.default.0x40a37c
mov al, byte [esp + 0x1c]
test al, al
jne 0x40a792
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x19c], 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f978
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x19c], 2
call fcn.004caf10
jmp case.default.0x40a37c
mov al, byte [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
dec al
mov byte [esp + 0x1c], al
jmp case.default.0x40a37c
movsx ax, byte [0x50d198]
mov dl, byte [esp + 0x1c]
push eax
push 0x50d199
lea ecx, [esp + 0x4c]
mov byte [0x50d19c], dl
call fcn.004be740
lea ecx, [esp + 0x20]
lea edx, [esp + 0x44]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004be1b0
call fcn.0047d320
add esp, 8
cmp ax, bx
jle 0x40a859
push 2
lea ecx, [esp + 0x24]
call fcn.004be4c0
cmp al, 0xfb
jne 0x40a828
push 3
lea ecx, [esp + 0x24]
call fcn.004be4c0
movzx si, al
push 4
lea ecx, [esp + 0x24]
shl esi, 8
call fcn.004be4c0
movzx ax, al
add esi, eax
mov dword [esp + 0x40], esi
jmp case.default.0x40a37c
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x19c], 0x16
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f9bc
jmp 0x40a70f
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x19c], 0x15
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f970
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x19c], 2
call fcn.004caf10
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40a8c1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a8b8
cmp al, 0xff
je 0x40a8b8
dec al
mov byte [ecx], al
jmp 0x40a8c1
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x18c], 0
call fcn.004be2e0
mov dword [esp + 0x18c], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.004be2e0
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret