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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x190
mov ecx, edx
mov dword [esp + 0x54], edx
xor edx, edx
inc edx
mov dword [esp], eax
call fcn.00410328
test eax, eax
jne 0x411bf5
mov dword [esp + 0x2c], eax
cmp dword [0x41d208], 0
je 0x4119cd
cmp byte [0x41d2e4], 0
jne 0x4119cd
xor eax, eax
mov dword [esp + 0x30], eax
push eax
mov byte [0x41d2e4], 1
lea ecx, [esp + 0x38]
call fcn.0040f5a8
push 0x1c
lea ecx, [esp + 0x168]
call fcn.0040f5a8
push 0
lea ecx, [esp + 0x168]
call fcn.0040f4e0
mov dword [esp + 0x58], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], ebx
jmp 0x411502
lea ecx, [esp + 8]
mov edx, dword [eax]
mov dword [ecx + 0x40], edx
call fcn.0040f678
mov ebx, dword [esp + 0x48]
xor edx, edx
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x50], eax
mov ebx, dword [eax + 0x3c]
mov dword [esp + 4], edx
add ebx, eax
push edx
lea ecx, [esp + 0xc]
call fcn.0040f5a8
movzx ebp, word [ebx + 0x14]
movzx eax, word [ebx + 6]
mov dword [esp + 0x5c], eax
lea ebp, [ebx + ebp + 0x18]
test eax, eax
jle 0x41160a
xor ebx, ebx
test dword [ebp + 0x24], 0x20000000
je 0x4115fc
mov esi, dword [ebp + 0xc]
push eax
push eax
add esi, dword [esp + 0x58]
mov eax, 0xfe338407
mov edx, 0x790529cb
add esi, dword [ebp + 8]
call fcn.00413044
mov edx, eax
test edx, edx
je 0x41157d
xor eax, eax
push eax
push 0x1c
push dword [esp + 0x60]
push eax
push esi
push 0xffffffffffffffff
call edx
test eax, eax
jl 0x4115fc
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
sub eax, ecx
sub eax, edx
add edx, ecx
mov ecx, dword [esp + 0x48]
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], edx
add edx, edi
sub edi, dword [esi + 0xc]
mov esi, dword [ecx + 0x30]
sub eax, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
test dl, 3
je 0x4115b9
inc edx
dec eax
test dl, 3
jne 0x4115b2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
call fcn.0040f4f0
add eax, 0x14
push eax
lea ecx, [esp + 0xc]
call fcn.0040f84c
lea ecx, [esp + 8]
call fcn.0040f4f0
add eax, 0xffffffec
push eax
lea ecx, [esp + 0xc]
call fcn.0040f4e0
mov edi, eax
lea esi, [esp + 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [esp + 4]
inc ebx
add ebp, 0x28
cmp ebx, dword [esp + 0x5c]
jl 0x41153c
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
cmp eax, 1
jle 0x411670
mov dword [esp + 0x4c], 1
push 0x14
pop ebp
lea eax, [ebp - 0x14]
push eax
lea ecx, [esp + 0xc]
call fcn.0040f4e0
mov ebx, eax
push ebp
lea ecx, [esp + 0xc]
call fcn.0040f4e0
mov ecx, eax
mov esi, dword [ebx]
mov eax, dword [ecx]
cmp eax, esi
jb 0x411656
mov edx, dword [ebx + 4]
add edx, esi
cmp eax, edx
ja 0x411656
mov eax, dword [ecx + 0x10]
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
add ebp, 0x14
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x44]
jl 0x411622
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
cmp dword [esp + 0x44], 0
jle 0x4116c8
xor ebp, ebp
xor ebx, ebx
push ebx
lea ecx, [esp + 0xc]
call fcn.0040f4e0
mov esi, eax
lea ecx, [esp + 0x34]
call fcn.0040f4f0
add eax, 0x14
push eax
lea ecx, [esp + 0x38]
call fcn.0040f84c
lea ecx, [esp + 0x34]
call fcn.0040f4f0
add eax, 0xffffffec
push eax
lea ecx, [esp + 0x38]
call fcn.0040f4e0
mov edi, eax
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
inc ebp
add ebx, 0x14
inc dword [esp + 0x30]
cmp ebp, dword [esp + 0x44]
jl 0x41167b
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x60]
jne 0x4114f4
lea ecx, [esp + 8]
call fcn.0040f678
lea ecx, [esp + 0x164]
call fcn.0040f678
push 0
lea ecx, [esp + 0x48]
call fcn.0040f5a8
xor eax, eax
mov dword [esp + 0x18], eax
push eax
lea ecx, [esp + 0x20]
call fcn.0040f5a8
mov eax, 0xfe338407
push eax
call fcn.00411d58
mov ebx, eax
lea ecx, [esp + 0x154]
call fcn.00411310
push eax
push eax
mov edx, 0xfe338407
lea eax, [esp + 0x164]
call fcn.00411c90
lea esi, [esp + 0x178]
push dword [esp + 0x15c]
push esi
lea ecx, [esi - 0x24]
call fcn.0040d058
push 0x80
push 0
add byte [edx + 1], ch