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

Disassembly:
push ebp
lea eax, [ecx + 0xc]
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
mov ecx, eax
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [ebp - 0x3c], eax
mov dword [esp], edi
call fcn.004deab0
sub esp, 8
mov eax, dword [eax]
cmp eax, dword [esi + 0xc]
je 0x485342
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [esp], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x50345c
call dword [0x716174]
mov eax, dword [ebp + 8]
sub esp, 4
lea ecx, [ebp - 0x34]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
add eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [0x715fc4]
mov ecx, dword [ebp - 0x34]
sub esp, 8
cmp byte [ecx + 0x14], 0
mov esi, ecx
jne 0x485315
lea ebx, [ebp - 0x30]
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.already_present.
mov dword [esp], ebx
call dword [0x716054]
mov dword [esp], ebx
mov ecx, esi
call dword [0x715f30]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4852e0
cmp edx, 0xffffffff
je 0x4852f9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
jne 0x4852f9
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x715ed0]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0x14], 0
jne 0x485330
lea ecx, [ebp - 0x34]
call dword [0x715fc8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], 0x20
call dword [0x715f34]
sub esp, 4
mov esi, dword [ebp - 0x34]
jmp 0x485299
mov dword [esp], 0x20
call dword [0x715f34]
sub esp, 4
jmp 0x485302
mov eax, dword [eax + 8]
cmp eax, 1
jbe 0x485352
mov ecx, dword [ebp - 0x3c]
call fcn.004c5740
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004deab0
sub esp, 8
mov edi, dword [eax]
cmp edi, dword [esi + 0xc]
mov dword [ebp - 0x40], eax
je 0x485442
mov eax, dword [ebx]
lea ecx, [edi + 0x14]
mov esi, dword [0x71608c]
mov dword [edi + 0x10], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call esi
lea eax, [ebx + 8]
sub esp, 4
lea ecx, [edi + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
fld qword [ebx + 0x10]
fstp qword [edi + 0x20]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x1c]
cmp dword [edi + 0x2c], eax
je 0x4853d8
lea eax, [ebx + 0x1c]
lea ecx, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004c9db0
mov ecx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x2c], eax
call fcn.004c9e10
mov eax, dword [ebx + 0x38]
fld qword [ebx + 0x20]
lea ecx, [edi + 0x68]
fstp qword [edi + 0x30]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x3c]
fld qword [ebx + 0x28]
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0x40]
fstp qword [edi + 0x38]
fld qword [ebx + 0x30]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x44]
fstp qword [edi + 0x40]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x48]
fld qword [ebx + 0x50]
fstp qword [edi + 0x60]
mov dword [edi + 0x58], eax
lea eax, [ebx + 0x58]
mov dword [esp], eax
call esi
movzx eax, byte [ebx + 0x68]
fld qword [ebx + 0x60]
sub esp, 4
fstp qword [edi + 0x70]
mov byte [edi + 0x78], al
mov eax, dword [ebx + 0x6c]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x70]
mov dword [edi + 0x80], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [edi + 0x18]
cmp dword [edi + 0xc], eax
jl 0x48547d
movsx eax, word [edi + 0x16]
mov ecx, edi
add eax, 1
mov dword [esp], eax
call dword [0x7160dc]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004deb20
mov edi, dword [esi + 0xc]
sub esp, 8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov dword [esp], 8
mov dword [ebp - 0x3c], eax
call dword [0x7160d4]
sub esp, 4
test eax, eax
mov edi, eax
je 0x48556e
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov dword [edi + 4], edx
mov edx, dword [ebp + 8]
mov dword [edi], eax
mov edx, dword [edx]
mov dword [edi + 8], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x485584
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x4855b0
mov edx, dword [ebx + 8]
mov dword [edi + 0x18], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x4855a0
mov eax, dword [ebx + 0x18]
fld qword [ebx + 0x10]
lea ecx, [edi + 0x2c]
fstp qword [edi + 0x20]
mov dword [edi + 0x28], eax
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004c9de0
mov eax, dword [ebx + 0x38]
fld qword [ebx + 0x20]
sub esp, 4
mov edx, dword [ebx + 0x58]
fstp qword [edi + 0x30]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x3c]
fld qword [ebx + 0x28]
mov dword [edi + 0x68], edx
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0x40]
fstp qword [edi + 0x38]
fld qword [ebx + 0x30]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x44]
fstp qword [edi + 0x40]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x48]
fld qword [ebx + 0x50]
fstp qword [edi + 0x60]
mov dword [edi + 0x58], eax
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x485590
movzx eax, byte [ebx + 0x68]
fld qword [ebx + 0x60]
fstp qword [edi + 0x70]
mov byte [edi + 0x78], al
mov eax, dword [ebx + 0x6c]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x70]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], edi
mov eax, dword [esi + 0xc]
add dword [eax + 0xc], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lock add dword [edx], 1
jmp 0x4854c2
lock add dword [edx], 1
jmp 0x485552
lock add dword [edx], 1
jmp 0x4854ef
lock add dword [edx], 1
jmp 0x4854db