Function at 0x401270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451268
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x46e230]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x34]
call fcn.00401010
push ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], esp
call fcn.0041ce50
test al, al
jne 0x4012f2
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041bb30
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], esp
mov dword [eax], 0x4630d8
call fcn.0041d1e0
push ecx
mov eax, esp
lea edx, [esp + 0x14]
mov dword [esp + 0x24], esp
push edx
lea ecx, [esp + 0x3c]
mov dword [eax], 0x4630e8
call fcn.004010b0
push eax
mov ecx, esi
mov byte [esp + 0x7c], 1
call fcn.004023e0
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401355
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.0041ea80
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], esp
mov dword [eax], str.components
call fcn.0041d1e0
test al, al
je 0x40160a
lea ecx, [esp + 0x34]
call fcn.0041ea80
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esp
mov dword [eax], str.component
call fcn.0041d1e0
test al, al
je 0x40160a
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
push 0xc
mov byte [esp + 0x7c], 2
call fcn.0044bc94
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401403
mov edx, dword [0x46ea80]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ea80
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [0x46ea80]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ea80
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov edx, dword [0x46ea80]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ea80
call eax
add eax, 0x10
mov dword [esi + 8], eax
jmp 0x401405
xor esi, esi
push esi
lea ecx, [esp + 0x28]
push ecx
call fcn.00402bf0
push ecx
mov eax, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x14], esp
push edx
lea ecx, [esp + 0x3c]
mov dword [eax], str.name
call fcn.004010b0
mov byte [esp + 0x78], 3
mov edi, dword [esp + 0x24]
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40148b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40147f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40147f
push eax
call fcn.00402680
mov dword [esp + 0x14], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x401474
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40148b
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004025d0
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4014b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x3c]
mov dword [eax], 0x463128
call fcn.004010b0
add edi, 4
mov byte [esp + 0x78], 4
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40152a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40151e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40151e
push eax
call fcn.00402680
mov dword [esp + 0x14], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x401513
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40152a
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004025d0
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40154f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
add esi, 4
xor ebx, ebx
cmp ecx, ebx
jne 0x401563
xor eax, eax
jmp 0x40156b
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 3
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 3
cmp edx, eax
jae 0x4015a4
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esi + 8]
push edx
lea eax, [esp + 0x30]
push eax
push 1
push edi
call fcn.00402c80
add esp, 0x18
add edi, 8
mov dword [esi + 0x10], edi
jmp 0x4015c3
cmp ecx, edi
jbe 0x4015ae
call dword [0x452388]
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, esi
call fcn.004024b0
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x401385
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x401385
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x401385
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x401385
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041bb30
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4