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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
lea eax, [esi + 0x78]
mov dword [esi + 0x30], ecx
mov dword [esi + 4], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5836e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, dword [edx + 0x1a0]
movzx eax, byte [ecx + 4]
and dword [esi + 0x28], 0
and dword [esi + 0x2c], 0
and dword [esi + 0x20], 0
mov dword [esi + 0x24], 4
mov dword [esi + 0x1c], eax
xor eax, eax
cmp byte [ecx + 6], 0
mov ecx, dword [edx + 0x2fc]
mov dword [esi + 0xc], ecx
mov ecx, 0
je 0x40fe69
and dword [esi + 0x60], 0
and dword [esi + 0x68], 0
xor ecx, ecx
inc ecx
mov edx, dword [esi + 4]
dec dword [esi + 0x1c]
lea edi, [esi + 0x5c]
mov dword [edi], ecx
add edx, 0x1a4
mov dword [esi + 0x14], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov dword [esi + 0x80], 1
push dword [esi + 8]
push eax
call fcn.004102bd
pop ecx
pop edi
mov dword [esi + 8], edx
cmp eax, 1
jne 0x40ff62
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1b4]
mov edx, dword [eax + 0x1b8]
push 0x5a3bc0
push dword [esi + 8]
call fcn.0040920b
pop ecx
pop edx
mov edi, dword [eax + 1]
mov eax, 1
cmp dword [esi + 0xc], edi
je 0x40fe7d
lea ecx, [esi + 0x5c]
mov edx, edi
call fcn.0041043d
test al, al
mov eax, 1
jne 0x40fe7d
lea ecx, [esi + 0x20]
mov edx, edi
mov dword [esi + 0x18], edi
call fcn.00406308
mov edx, dword [esi + 0x18]
lea ecx, [esi + 0x5c]
call fcn.004104ab
cmp dword [esi + 0x1c], 1
mov edi, dword [esi + 0x18]
mov eax, 1
ja 0x40fe7d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3bd0
push edi
call fcn.004091f0
pop ecx
pop edx
cmp dword [eax + 8], 0
mov edi, dword [esi + 0x18]
mov eax, 1
je 0x40fe7d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3be0
push edi
call fcn.004091f0
pop ecx
pop edx
and dword [eax + 0xc], 0
xor eax, eax
inc eax
jmp 0x40fe7d
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x41026c
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x20]
xor eax, eax
lea edi, [edx + 1]
cmp edi, ebx
cmovb ebx, eax
dec ecx
neg ebx
lea edi, [edx + ebx + 1]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebx + edx*4]
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x14]
push dword [esi + 0x6c]
push eax
call fcn.004102bd
pop ecx
pop edi
cmp eax, 1
jne 0x4101f3
mov eax, dword [esi + 4]
mov edi, edx
mov ecx, dword [eax + 0x1b4]
mov edx, dword [eax + 0x1b8]
push 0x5a3bf0
mov dword [esi + 0x6c], edi
push edi
call fcn.0040920b
pop ecx
pop edx
mov cl, byte [eax]
mov edi, dword [eax + 1]
mov byte [esi + 8], cl
lea ecx, [esi + 0x5c]
mov edx, edi
call fcn.0041043d
test al, al
mov eax, 1
jne 0x40ff93
lea ecx, [esi + 0x20]
mov edx, edi
mov dword [esi + 0x10], edi
call fcn.00406308
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x5c]
call fcn.004104ab
cmp dword [esi + 0x1c], 2
jae 0x410052
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3c00
push dword [esi + 0x10]
call fcn.004091f0
pop ecx
pop edx
cmp dword [eax + 8], 0
je 0x410052
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3c40
push dword [esi + 0x10]
call fcn.004091f0
pop ecx
pop edx
and dword [eax + 0xc], 0
jmp 0x4101eb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3c10
push dword [esi + 0x34]
call fcn.004091f0
pop ecx
pop edx
movzx ecx, byte [esi + 8]
mov dword [esi + 0x18], ecx
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5cf1e4
mov dword [esi + 0xc], edi
push edi
call fcn.004091f0
pop ecx
pop edx
mov eax, dword [eax + 4]
test eax, eax
je 0x4100f0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x18]
movzx ecx, byte [edx + ecx + 0x1ec]
add eax, ecx
mov ecx, dword [edx + 0x1c0]
mov edx, dword [edx + 0x1c4]
push 0x5cf1f4
push eax
call fcn.00478a1b
pop ecx
pop edx
mov eax, dword [eax]
cmp eax, 1
jne 0x410121
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3c30
push dword [esi + 0xc]
call fcn.004091f0
pop ecx
pop edx
jmp 0x410077
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
call fcn.00408fb9
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edx
lea ecx, [esi + 0x38]
lea edx, [esi + 0x54]
call fcn.00408fd7
cmp byte [esi + 0x38], 0
je 0x4100d0
mov al, byte [esi + 8]
cmp byte [esi + 0x39], al
jb 0x410101
jne 0x4100d0
mov eax, dword [esi + 0x3a]
jmp 0x4100cb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5cf1e4
push dword [esi + 0xc]
call fcn.004091f0
pop ecx
pop edx
mov eax, dword [eax + 4]
test eax, eax
je 0x410176
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x18]
movzx ecx, byte [edx + ecx + 0x1ec]
add eax, ecx
mov ecx, dword [edx + 0x1c0]
mov edx, dword [edx + 0x1c4]
push 0x5cf1f4
push eax
call fcn.00478a1b
pop ecx
pop edx
mov eax, dword [eax]
mov edi, dword [esi + 0x10]
jmp 0x4101ad
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
call fcn.00408fb9
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edx
lea ecx, [esi + 0x38]
lea edx, [esi + 0x54]
call fcn.00408fd7
cmp byte [esi + 0x38], 0
mov edi, dword [esi + 0x10]
je 0x4101aa
mov al, byte [esi + 8]
cmp byte [esi + 0x39], al
jb 0x410187
jne 0x4101aa
mov eax, dword [esi + 0x3a]
jmp 0x4101ad
xor eax, eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [eax + 0x1ac]
push 0x5a3c20
push edi
call fcn.004091f0
pop ecx
pop edx
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x38]
mov dword [eax + 0xc], edi
push dword [esi + 0x10]
push edi
call fcn.0041098b
pop eax
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, 3
jne 0x410222
xor eax, eax
inc eax
jmp 0x40ff93
cmp dword [esi + 0x1c], 2
jb 0x40ff62
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x38]
push dword [esi + 0x34]
mov eax, dword [esi + 4]
push dword [eax + 0x2fc]
call fcn.0041098b
pop eax
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, 3
je 0x40ff62
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x30]
movsd xmm0, qword [esi + 0x3c]
movsd xmm1, qword [esi + 0x44]
and dword [esi + 0x80], 0
mov dword [edx + 0x14], ecx
lea ecx, [esi + 0x5c]
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm0
mov dword [edx], eax
call fcn.00410300
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
call fcn.004257e7
mov eax, dword [esi + 0x78]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x30]
and dword [esi + 0x80], 0
lea ecx, [esi + 0x5c]
mov dword [eax], 3
call fcn.00410300
jmp 0x410250