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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x63a1e8]
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x88], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x20]
mov al, byte [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], edi
cmp ecx, dword [ebx + 0x10]
mov dword [esp + 0x3c], edx
je 0x515a5e
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], ecx
mov cl, 1
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], ecx
jmp 0x515a66
mov dword [esp + 0x38], 0
cmp dword [esi + 0x9c], 0xffffffff
lea ecx, [ebx + 8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ecx
je 0x515b51
mov ecx, dword [esi + 0x9c]
mov edi, esi
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
sub esi, edx
sar esi, 3
imul esi, esi, 0xaaaaaaab
cmp esi, ecx
jbe 0x515e61
lea ecx, [ecx + ecx*2]
test al, al
mov esi, edi
mov edx, dword [edx + ecx*8 + 0x10]
mov ecx, dword [edi + 0x9c]
mov dword [esp + 0x50], edx
je 0x515c57
cmp ecx, 0xffffffff
je 0x515cf0
cmp al, 1
jne 0x515e6e
mov eax, dword [esp + 0x28]
mov ecx, esi
mov esi, esp
mov edi, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
movsd xmm0, qword [esp + 0x78]
mov eax, dword [ecx + 0x9c]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
mov dword [esp + 4], eax
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00515ff0
sub esp, 0x20
mov esp, edi
mov esp, esi
mov al, 1
mov cl, 1
mov dword [esp + 0x30], eax
jmp 0x515d79
test al, al
mov ecx, 0
mov dword [esp + 0x30], 0
je 0x515d79
cmp al, 1
jne 0x515cfe
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov edx, edi
sub eax, edi
mov edi, dword [esp + 0x28]
je 0x515d01
sar eax, 3
mov ecx, edx
imul esi, eax, 0xaaaaaaab
mov eax, dword [esp + 0x24]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 0x40], esi
dec esi
mov dword [esp + 0x54], ecx
shr esi, 1
lea edx, [esi + esi*2]
mov edi, dword [ecx + edx*8 + 4]
mov ebx, dword [ecx + edx*8]
mov dword [esp + 0x5c], edi
xor eax, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x58], ebx
mov ecx, edi
xor ecx, ebx
or ecx, eax
jne 0x515c00
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov edi, dword [ecx + edx*8 + 8]
cmp edi, eax
jne 0x515c20
mov eax, dword [ebp + 0x24]
mov ebx, dword [esp + 0x2c]
cmp dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [esp + 0x40]
jge 0x515c30
jmp 0x515d07
cmp edi, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
sbb eax, dword [esp + 0x5c]
jl 0x515c30
jmp 0x515d07
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cmp eax, edi
jg 0x515d07
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp], esi
call fcn.005164a0
sub esp, 8
test esi, esi
je 0x515d14
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
jmp 0x515ba0
mov al, 1
cmp ecx, 0xffffffff
mov dword [esp + 0x30], eax
je 0x515e5a
mov eax, dword [esi + 0x9c]
mov ecx, dword [ebx + 0xc]
mov edi, esp
lea edx, [eax + eax*2]
mov ecx, dword [ecx + edx*8 + 0x14]
mov dword [ecx + 0x9c], 0xffffffff
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov esi, ecx
sub esi, edx
sar esi, 3
imul esi, esi, 0xaaaaaaab
dec esi
cmp esi, eax
je 0x515ce1
lea ecx, [esi + esi*2]
mov ecx, dword [edx + ecx*8 + 0x14]
mov dword [ecx + 0x9c], 0xffffffff
mov ecx, dword [ebx + 0x10]
movsd xmm0, qword [ecx - 8]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [ecx - 0x18]
movsd xmm1, qword [ecx - 0x10]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
call fcn.005167f0
sub esp, 0x1c
mov ecx, dword [ebx + 0x10]
add ecx, 0xffffffe8
mov dword [ebx + 0x10], ecx
xor ecx, ecx
mov esp, edi
jmp 0x515d79
mov cl, 1
mov dword [esp + 0x30], ecx
cmp al, 1
je 0x515b6e
int3
mov eax, dword [esp + 0x24]
jmp 0x515d21
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
jmp 0x515d21
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x44]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
call fcn.00516620
sub esp, 0x1c
mov cl, 1
mov edx, dword [ebx + 0xc]
cmp edx, dword [ebx + 0x10]
je 0x515d8a
mov esi, dword [edx]
mov edi, dword [edx + 4]
mov bl, 1
jmp 0x515d8c
xor ebx, ebx
cmp dword [esp + 0x50], 1
mov edx, dword [esp + 0x30]
setne al
xor dl, 1
or dl, al
jne 0x515da6
mov eax, dword [esp + 0x2c]
dec dword [eax + 0x18]
cmp dword [ebp + 0x24], 1
setne al
xor cl, 1
or cl, al
jne 0x515dbb
mov eax, dword [esp + 0x2c]
inc dword [eax + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, eax
xor cl, bl
jne 0x515de8
mov eax, ebx
xor al, 1
jne 0x515de8
cmp byte [esp + 0x38], 0
je 0x515e6b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
xor eax, esi
xor ecx, edi
or ecx, eax
jne 0x515dec
jmp 0x515e42
test cl, cl
je 0x515e42
mov ecx, dword [ebp + 0x28]
test bl, bl
mov eax, esi
mov ebx, 0xffffffff
mov esi, SysReAllocString
cmovne ebx, eax
lea eax, [esp + 0x60]
cmovne esi, edi
mov dword [esp], eax
mov edi, ecx
call fcn.00516d60
sub esp, 4
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x60], ebx
sbb eax, esi
jge 0x515e39
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0xc
jmp 0x515e42
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.005909f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x24
xor ecx, ecx
jmp 0x515d79
add ebx, 0xc
mov ecx, ebx
call fcn.00479c8a
int3
int3