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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x3a8
mov edx, dword [ebp + 0x14]
mov eax, 0x80000000
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, dword [edx]
cmp eax, 4
setb cl
cmp eax, 1
setne al
test cl, al
jne 0x5136b9
cmp dword [edx + 0xc], 0x80000005
jne 0x5136b9
lea ebx, [edx + 0x10]
jmp 0x5136f9
xor eax, eax
lea esi, [esp + 0x78]
inc eax
mov ecx, esi
push eax
push 0x6993d8
push eax
push 0x697c16
call fcn.00510c5c
add esp, 0x10
mov al, byte [esi]
movzx ecx, word [esi + 1]
mov dl, byte [esi + 3]
mov ebx, dword [esi + 4]
cmp al, 0x14
mov word [esp + 0x30], cx
mov byte [esp + 0x32], dl
jne 0x51382c
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
add esi, 0x240
mov ecx, esi
call fcn.005124da
cmp dword [ebx + 8], 0
je 0x513727
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov edx, dword [eax]
lea eax, [esp + 0x78]
mov byte [eax], 4
push eax
push 0x10
call fcn.0050a573
jmp 0x513828
mov edx, ebx
mov ebx, dword [ebx + 0x10]
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], esi
imul eax, dword [edx + 0x14], 0x18
mov dword [esp + 0xc], edx
add eax, ebx
mov dword [esp], eax
cmp ebx, eax
je 0x51387b
lea eax, [ebx + 0x18]
mov dword [esp + 8], eax
call fcn.004fe576
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
movsd xmm0, qword [0x69eaa8]
movsd xmm1, qword [0x69eaa0]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x78], xmm1
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
shl eax, 4
test eax, eax
je 0x5137e7
mov ecx, edi
mov dword [esp + 4], eax
call fcn.00500eaa
mov ecx, eax
call fcn.00500b2c
mov ebx, eax
lea esi, [esp + 0x78]
mov ecx, esi
mov edx, ebx
call fcn.004fea7f
test al, al
jne 0x513808
mov ecx, esi
mov edx, ebx
add edi, 0x10
call fcn.00504cd0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
jmp 0x5137a9
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
call fcn.004fe4e0
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
lea ecx, [esp + 0x58]
jmp 0x513741
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
call fcn.004fe4e0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, edi
push 1
push 0x1a
call fcn.0050a517
pop eax
pop ecx
jmp 0x513855
movzx ecx, word [esp + 0x30]
mov edx, dword [esp + 0x84]
mov word [edi + 1], cx
mov cl, byte [esp + 0x32]
mov byte [edi + 3], cl
mov ecx, dword [esp + 0x80]
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
call fcn.00509ada
push esi
call fcn.00514478
pop eax
push 8
pop edx
mov ecx, esi
call fcn.004256e0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [edx + 0x10]
imul eax, dword [edx + 0x14], 0x18
lea edi, [esi + eax]
mov dword [esp + 0x24], eax
mov eax, esi
mov dword [esp + 0x28], esi
mov dword [esp + 8], edi
cmp eax, edi
je 0x5138fc
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
lea edx, [eax + 0x18]
mov dword [esp], edx
shl esi, 4
test esi, esi
je 0x5138f3
mov dword [esp + 4], ecx
call fcn.00500eaa
mov edi, eax
mov ebx, edx
sub esp, 4
mov ecx, edi
mov edx, ebx
push 5
call fcn.00504e32
pop ecx
pop edx
test al, al
je 0x5138e3
sub esp, 4
mov ecx, edi
mov edx, ebx
push 0x11
call fcn.00504e32
pop ecx
pop edx
test al, al
jne 0x513815
mov ecx, dword [esp + 4]
mov edi, dword [esp + 8]
add esi, 0xfffffff0
add ecx, 0x10
jmp 0x5138a6
mov eax, dword [esp]
mov esi, dword [esp + 0x28]
jmp 0x513893
lea eax, [esp + 0x10]
lea ebx, [esp + 0x78]
and dword [eax], 0
mov dword [eax + 4], 4
and dword [eax + 8], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x513941
mov edx, dword [esi + 4]
lea edi, [esi + 0x18]
mov ecx, ebx
push dword [esi + 8]
mov esi, eax
call fcn.004fb7b2
pop eax
lea ecx, [esp + 0x10]
mov edx, ebx
call fcn.0047d95a
mov eax, esi
mov esi, edi
add eax, 0xffffffe8
jmp 0x513916
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xc]
movsd qword [esp + 0x68], xmm0
cmp dword [eax + 0x14], 0
je 0x513a1c
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
shl ebx, 4
xor eax, eax
inc eax
mov dword [esp + 8], eax
push 2
pop edi
test ebx, ebx
mov dword [esp + 4], 0
je 0x5139ae
lea esi, [ecx + 0x10]
call fcn.00500eaa
add ebx, 0xfffffff0
cmp ax, 5
mov ecx, esi
jne 0x513979
mov eax, 0x80000000
xor eax, dword [esi - 0x10]
cmp eax, 2
cmovae eax, edi
test eax, eax
je 0x513bd6
mov esi, dword [ebp + 0xc]
mov dword [esp], 0
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0
je 0x513a2b
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
shl ebx, 4
test ebx, ebx
je 0x513a28
lea esi, [ecx + 0x10]
call fcn.00500eaa
add ebx, 0xfffffff0
cmp ax, 0x11
mov ecx, esi
jne 0x5139ce
mov eax, 0x80000000
xor eax, dword [esi - 0x10]
cmp eax, 2
cmovb edi, eax
cmp edi, 1
jne 0x513a28
mov edx, dword [esi - 8]
lea ecx, [esp + 0x78]
push dword [esi - 4]
call fcn.004fe03c
pop eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [esp]
lea ebx, [esp + 0x78]
jmp 0x513a42
mov esi, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
xor edx, edx
inc ecx
jmp 0x513a3a
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [esp]
lea ebx, [esp + 0x78]
mov dword [esp + 0x78], 0x80000000
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x78]
mov dword [esp + 0x38], eax
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
movsd qword [esp + 0x48], xmm1
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x48], 0x80000000
mov dword [esp + 0x50], eax
je 0x513aa7
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
call fcn.00512528
mov cl, 0x19
test al, al
jne 0x513c1c
cmp byte [esi + 0x344], 0
je 0x513c1a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x328]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x340]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x338]
movsd xmm1, qword [eax + 0x330]
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x10], xmm1
push 0x10
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x2b8]
mov esi, dword [eax + 0x32c]
push 0xe8
push dword [esp + 0x30]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xb8]
add eax, 0x40
push 0x1e8
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
movsd xmm1, qword [eax + 0x230]
movsd xmm0, qword [eax + 0x228]
movsd qword [edi - 0x10], xmm1
movsd xmm1, qword [eax + 0x238]
movsd qword [edi - 0x18], xmm0
movsd qword [edi - 8], xmm1
push 8
pop edx
mov ecx, 0x368
call fcn.0048b62b
mov edi, eax
mov eax, 0x328
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov ebx, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x328], eax
mov dword [edi + 0x32c], esi
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
movsd qword [edi + 0x330], xmm0
movsd qword [edi + 0x338], xmm1
mov eax, dword [esp + 0x20]
mov dword [edi + 0x340], eax
lea edi, [edi + 0x344]
mov eax, ecx
push 9
pop ecx
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], 0x6995e0
mov byte [edi], 0x14
call fcn.00509ada
jmp 0x513867
mov edx, dword [esi - 8]
lea ebx, [esp + 0x78]
mov ecx, ebx
push dword [esi - 4]
call fcn.004fb7b2
pop eax
mov eax, dword [ebx]
mov esi, dword [ebp + 0xc]
mov dword [esp], 0
cmp eax, 0x80000000
je 0x5139b8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
jmp 0x5139b8
mov cl, 0x3f
mov edi, dword [ebp + 8]
mov byte [edi], 8
mov byte [edi + 1], cl
lea ecx, [esp + 0x30]
call fcn.00513d92
jmp 0x513858