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

Disassembly:
push 0xffffffffffffffff
push 0x604d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004ea3f0
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0
movdqu xmmword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0x2c], xmm0
call fcn.00547c50
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.0050fe80
cmp dword [esi + 0x10], 3
mov dword [esp + 0x54], 1
jne 0x51223f
push dword [esi + 0xc4]
lea ecx, [esp + 0x1c]
push 0x4004
call fcn.00547ce0
cmp dword [esi + 0xc4], 0
je 0x5121cd
mov ecx, dword [esi + 0xc0]
jmp 0x5121cf
xor ecx, ecx
push dword [esi + 0xc4]
add eax, 4
push ecx
push eax
call fcn.005e08e0
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10
push 0x4008
call fcn.00547ce0
mov ecx, dword [esi + 0x230]
mov edx, eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x234]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x58]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0
push dword [esi + 0x58]
push 0x4009
call fcn.00547ce0
cmp dword [esi + 0x58], 0
je 0x512235
mov ecx, dword [esi + 0x54]
push dword [esi + 0x58]
jmp 0x51231b
push dword [esi + 0x58]
xor ecx, ecx
jmp 0x51231b
mov eax, dword [0x637928]
test eax, eax
jne 0x512283
push 0x34
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
mov byte [esp + 0x54], 2
test edi, edi
je 0x512277
push 0x34
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.00509b30
jmp 0x512279
xor eax, eax
mov byte [esp + 0x54], 1
mov dword [0x637928], eax
imul edi, dword [esi + 0x244], 0x18c
lea ecx, [esp + 0x18]
add edi, dword [eax + 0x18]
push dword [edi + 0x170]
push 0x4004
call fcn.00547ce0
cmp dword [edi + 0x170], 0
je 0x5122b5
mov ecx, dword [edi + 0x16c]
jmp 0x5122b7
xor ecx, ecx
push dword [edi + 0x170]
add eax, 4
push ecx
push eax
call fcn.005e08e0
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10
push 0x4008
call fcn.00547ce0
mov ecx, dword [edi + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x18]
mov dword [eax + 0x10], 0
push dword [edi + 0x20]
push 0x4009
call fcn.00547ce0
cmp dword [edi + 0x134], 0
je 0x512316
mov ecx, dword [edi + 0x130]
jmp 0x512318
xor ecx, ecx
push dword [edi + 0x20]
push ecx
add eax, 4
push eax
call fcn.005e08e0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00548360
mov edi, dword [esp + 0x30]
mov edx, dword [esi + 0x218]
mov dword [esp + 0x10], eax
add dword [edi + 4], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x238]
mov edi, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x23c]
mov dword [eax], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [eax], edi
call fcn.00547e30
mov eax, edi
mov dword [esi + 0x22c], 0
or eax, dword [esi + 0x22c]
mov dword [esi + 0x228], edi
je 0x5124dd
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x40]
push 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
mov eax, dword [edi + 0x354]
movlpd qword [esp + 0x48], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
jne 0x5123eb
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.00600c10
push eax
push dword [esi + 0x14]
mov eax, dword [edi + 0x348]
call eax
test eax, eax
je 0x512514
push 0
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x22c]
mov eax, dword [edi + 0x354]
push dword [esi + 0x228]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x40]
cmp eax, dword [esi + 0x228]
jne 0x5124a9
mov eax, dword [esp + 0x44]
cmp eax, dword [esi + 0x22c]
jne 0x5124a9
xor eax, eax
mov dword [esp + 0x10], eax
nop
xor edx, edx
lea ecx, [eax + 0x1000]
cmp edx, dword [esi + 0x21c]
jg 0x512451
jl 0x51244a
cmp ecx, dword [esi + 0x218]
jae 0x512451
mov edi, 0x1000
jmp 0x512459
mov edi, dword [esi + 0x218]
sub edi, eax
cmp dword [esi + 0x7c], edx
je 0x512463
mov ecx, dword [esi + 0x78]
jmp 0x512465
xor ecx, ecx
push 0
lea edx, [esp + 0x40]
add eax, ecx
push edx
push edi
push eax
mov eax, dword [esp + 0x1c]
push dword [esi + 0x14]
mov eax, dword [eax + 0x348]
call eax
test eax, eax
je 0x512514
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x10], eax
cmp ecx, dword [esi + 0x21c]
jg 0x5124a5
jl 0x512430
cmp eax, dword [esi + 0x218]
jb 0x512430
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0x218]
add ecx, dword [esi + 0x228]
mov eax, dword [esi + 0x21c]
adc eax, dword [esi + 0x22c]
push 0
push 0
push eax
mov eax, dword [edi + 0x354]
push ecx
push dword [esi + 0x14]
call eax
push dword [esi + 0x14]
mov eax, dword [edi + 0x358]
call eax
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xffffffff
call fcn.00547c70
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005e0482
add esp, 0x4c
ret
mov byte [esp + 0x17], 0
jmp 0x5124e2