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

Disassembly:
push ebp
lea eax, [ecx + 8]
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.004c7ad0
sub esp, 8
mov eax, dword [eax]
cmp eax, dword [esi + 8]
je 0x473bc2
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], 0x4e3a1c
call dword [0x57c108]
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 [0x57bf60]
mov ecx, dword [ebp - 0x34]
sub esp, 8
cmp byte [ecx + 0x14], 0
mov esi, ecx
jne 0x473b95
lea ebx, [ebp - 0x30]
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.already_present.
mov dword [esp], ebx
call dword [0x57bfec]
mov dword [esp], ebx
mov ecx, esi
call dword [0x57bee0]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x473b60
cmp edx, 0xffffffff
je 0x473b79
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
jne 0x473b79
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x57be80]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0x14], 0
jne 0x473bb0
lea ecx, [ebp - 0x34]
call dword [0x57bf64]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], 0x20
call dword [0x57bee4]
sub esp, 4
mov esi, dword [ebp - 0x34]
jmp 0x473b19
mov dword [esp], 0x20
call dword [0x57bee4]
sub esp, 4
jmp 0x473b82
mov eax, dword [eax + 8]
cmp eax, 1
jbe 0x473bd2
mov ecx, dword [ebp - 0x3c]
call fcn.004ae5d0
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.004c7ad0
sub esp, 8
mov edi, dword [eax]
cmp edi, dword [esi + 8]
mov dword [ebp - 0x40], eax
je 0x473cb3
mov eax, dword [ebx]
lea ecx, [edi + 0x14]
mov esi, dword [0x57c024]
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 0x473c58
lea eax, [ebx + 0x1c]
lea ecx, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004b2d70
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.004b2dd0
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
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 0x473cee
movsx eax, word [edi + 0x16]
mov ecx, edi
add eax, 1
mov dword [esp], eax
call dword [0x57c074]
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.004c7b40
mov edi, dword [esi + 8]
sub esp, 8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov dword [esp], 8
mov dword [ebp - 0x44], eax
call dword [0x57c06c]
sub esp, 4
test eax, eax
mov edi, eax
mov dword [ebp - 0x3c], eax
je 0x473de1
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x44]
mov dword [eax + 4], edi
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov dword [eax + 8], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x473e00
mov edi, dword [ebp - 0x3c]
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 0x473e30
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x18], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x473e20
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x18]
fld qword [ebx + 0x10]
mov dword [edi + 0x28], eax
lea eax, [ebx + 0x1c]
fstp qword [edi + 0x20]
lea ecx, [edi + 0x2c]
mov dword [esp], eax
call fcn.004b2da0
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 0x473e10
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebx + 0x68]
fld qword [ebx + 0x60]
fstp qword [edx + 0x70]
mov byte [edx + 0x78], al
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov dword [eax], ebx
mov eax, dword [esi + 8]
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 0x473d38
lock add dword [edx], 1
jmp 0x473dd1
lock add dword [edx], 1
jmp 0x473d6b
lock add dword [edx], 1
jmp 0x473d54