Function at 0x430516
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60ad69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push ecx
push ecx
mov dword [esp + 0x18], ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, edi
call dword [eax + 0x460]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x47c]
mov ecx, eax
call fcn.0042941f
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jne 0x430625
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov dword [esp + 0x1c], esp
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], esp
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x4c], esp
push ecx
mov dword [eax + 0xc], edx
call fcn.0042a46a
add esp, 0x24
call fcn.0042a546
add esp, 0x20
test al, al
je 0x430625
xor al, al
jmp 0x4309b9
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x16c]
mov eax, dword [esp + 0x28]
or dword [esp + 0x68], 0xffffffff
or dword [esp + 0x6c], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
jne 0x430676
mov eax, dword [0x6a677c]
jmp 0x43068c
cmp eax, dword [0x6a677c]
jne 0x43068c
push ebx
push 1
push dword [esp + 0x18]
mov ecx, edi
call fcn.00420f6d
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.0046458f
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x4a4]
mov ebx, 0x80000000
cmp eax, ebx
je 0x4306b6
cmp eax, 2
jg 0x4306cd
mov ecx, dword [ecx + 0x4a0]
cmp ecx, ebx
je 0x4308a9
cmp ecx, 2
jle 0x4308a9
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push dword [esp + 0x14]
mov ecx, edi
call dword [eax + 0x144]
test al, al
je 0x4308a9
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x4a4]
cmp eax, ebx
je 0x4307a2
cmp eax, 2
jle 0x4307a2
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
sub edx, esi
mov ebx, ecx
sub ebx, eax
inc edx
inc ebx
cmp ebx, edx
jle 0x430777
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], esp
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], esp
mov dword [eax + 0xc], ecx
call fcn.004382db
add esp, 0x20
test al, al
jne 0x43079d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov byte [ebp + 0x10], 1
cmp byte [ebp + 0x10], 0
jne 0x430791
cmp eax, esi
jl 0x430797
cmp ecx, dword [esp + 0x4c]
jle 0x43079d
sub ecx, dword [esp + 0x4c]
add dword [esp + 0x1c], ecx
jmp 0x43079d
cmp eax, esi
jl 0x430797
jle 0x43079d
sub eax, esi
add dword [esp + 0x1c], eax
mov ebx, 0x80000000
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x5c]
cmp dword [esp + 0x1c], eax
jle 0x4307b4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x1c], eax
jge 0x4307c2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x4a0]
cmp eax, ebx
je 0x430889
cmp eax, 2
jle 0x430889
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov ebx, eax
sub ebx, ecx
inc edx
inc ebx
cmp ebx, edx
mov ebx, dword [esp + 0x48]
jle 0x43084f
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], esp
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], esp
mov dword [eax + 0xc], ecx
call fcn.004382db
add esp, 0x20
test al, al
jne 0x430889
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x44]
cmp edx, 0xff
je 0x43086f
cmp edx, 1
jne 0x43086f
cmp eax, ebx
jg 0x430883
cmp ecx, dword [esp + 0x40]
jge 0x430889
jmp 0x430875
cmp ecx, dword [esp + 0x40]
jge 0x43087f
sub ecx, dword [esp + 0x40]
add dword [esp + 0x18], ecx
jmp 0x430889
cmp eax, ebx
jle 0x430889
sub eax, ebx
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x58]
cmp dword [esp + 0x18], eax
jle 0x43089b
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x18], eax
jge 0x4308a9
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0042a577
pop ecx
pop ecx
test al, al
jne 0x4308e1
mov ebx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, dword [esp + 0x20]
mov eax, esp
mov dword [esp + 0x1c], esp
push 0
push dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
call fcn.004328b9
mov ecx, edi
call fcn.004125d1
test al, al
jne 0x43099a
mov ecx, edi
call fcn.0041268a
test al, al
jne 0x43099a
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x474]
mov ebx, eax
cmp ebx, edi
jne 0x430917
push ebx
jmp 0x43099b
mov ecx, dword [esp + 0x28]
add dword [esp + 0x30], ecx
add dword [esp + 0x38], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x34], eax
add dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x18]
sub dword [esp + 0x30], ecx
sub dword [esp + 0x38], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x34], eax
sub dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], esp
call fcn.00429445
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00430516
or dword [esp + 0x7c], 0xffffffff
push 0
lea ecx, [esp + 0x10]
mov bl, al
call fcn.0046458f
mov al, bl
jmp 0x4309b9
push edi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x244]
or dword [esp + 0x7c], 0xffffffff
push 0
lea ecx, [esp + 0x10]
call fcn.0046458f
mov al, 1
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10